You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2020/07/13 20:51:22 UTC

[GitHub] [beam] robinyqiu commented on a change in pull request #12231: [BEAM-9178] Support more EXTRACT functions

robinyqiu commented on a change in pull request #12231:
URL: https://github.com/apache/beam/pull/12231#discussion_r453924913



##########
File path: sdks/java/extensions/sql/src/main/java/org/apache/beam/sdk/extensions/sql/meta/provider/bigquery/BeamBigQuerySqlDialect.java
##########
@@ -359,6 +267,43 @@ private void unparseFunctionsUsingInterval(
     }
   }
 
+  private void unparseExtractFunctions(
+      SqlWriter writer, SqlCall call, int leftPrec, int rightPrec) {
+    String funName = call.getOperator().getName();
+    int operandCount = call.operandCount();
+    SqlNode tz = null;

Review comment:
       Actually we can't do this because tz is optional and there are cases in which it will not be set in the code below.




----------------------------------------------------------------
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:
users@infra.apache.org