kasakrisz commented on code in PR #4696:
URL: https://github.com/apache/hive/pull/4696#discussion_r1420180384


##########
ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/translator/ASTConverter.java:
##########
@@ -203,53 +201,56 @@ private static ASTNode createNullField(RelDataType 
fieldType) {
       return ASTBuilder.construct(HiveParser.TOK_NULL, "TOK_NULL").node();
     }
 
+    return createCastNull(fieldType);
+  }
+
+  private static ASTNode createCastNull(RelDataType fieldType) {
+    ASTNode astNode = convertType(fieldType);
+    return ASTBuilder.construct(HiveParser.TOK_FUNCTION, "TOK_FUNCTION")
+            .add(astNode)
+            .add(HiveParser.TOK_NULL, "TOK_NULL")
+            .node();
+  }
+
+  public static ASTNode convertType(RelDataType fieldType) {

Review Comment:
   removed public



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

To unsubscribe, e-mail: [email protected]

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to