[ 
https://issues.apache.org/jira/browse/BEAM-4634?focusedWorklogId=450160&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-450160
 ]

ASF GitHub Bot logged work on BEAM-4634:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 24/Jun/20 00:30
            Start Date: 24/Jun/20 00:30
    Worklog Time Spent: 10m 
      Work Description: lostluck commented on a change in pull request #12061:
URL: https://github.com/apache/beam/pull/12061#discussion_r444579505



##########
File path: sdks/go/pkg/beam/io/bigqueryio/bigquery.go
##########
@@ -93,18 +93,37 @@ func Read(s beam.Scope, project, table string, t 
reflect.Type) beam.PCollection
        return query(s, project, fmt.Sprintf("SELECT * from [%v]", table), t)
 }
 
+// QueryOptions represents additional options for executing a query.
+type QueryOptions struct {
+       // UseStandardSQL enables BigQuery's Standard SQL dialect when 
executing a query.
+       UseStandardSQL bool
+}
+
+// UseStandardSQL enables BigQuery's Standard SQL dialect when executing a 
query.
+func UseStandardSQL(qo *QueryOptions) error {
+       qo.UseStandardSQL = true
+       return nil
+}

Review comment:
       Works for me! Consistency with the deeper BigQuery options certainly 
trumps local verbosity.
   
   Thanks!




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 450160)
    Time Spent: 1h 10m  (was: 1h)

> Use Standard SQL in biqueryio transform
> ---------------------------------------
>
>                 Key: BEAM-4634
>                 URL: https://issues.apache.org/jira/browse/BEAM-4634
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-go
>            Reporter: Eduardo Morales
>            Priority: P3
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> The bigqueryio transform is currently hard coded to use Legacy SQL. Using the 
> newer Standard SQL would allow us to write richer queries.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to