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/06/16 05:20:07 UTC

[GitHub] [beam] robinyqiu commented on a change in pull request #11957: [BEAM-10033] zetaSqlValueToJavaObject uses value.getType()

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



##########
File path: sdks/java/extensions/sql/zetasql/src/main/java/org/apache/beam/sdk/extensions/sql/zetasql/ZetaSqlUtils.java
##########
@@ -196,7 +196,55 @@ private static Value beamLogicalObjectToZetaSqlValue(Object object, String ident
     }
   }
 
-  // Value conversion: ZetaSQL => Beam
+  // Type conversion: ZetaSQL => Beam
+  public static FieldType zetaSqlTypeToBeamFieldType(Type type) {

Review comment:
       Yes. All ZetaSQL types are nullable. i.e. You can't define a ZetaSQL type that disallow null values.




----------------------------------------------------------------
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