mihaibudiu commented on code in PR #4110:
URL: https://github.com/apache/calcite/pull/4110#discussion_r1896897606


##########
core/src/main/java/org/apache/calcite/rex/RexBuilder.java:
##########
@@ -1374,6 +1377,10 @@ public RexLiteral makeLiteral(boolean b) {
     return b ? booleanTrue : booleanFalse;
   }
 
+  public RexLiteral makeUuidLiteral(@Nullable UUID uuid) {
+    return new RexLiteral(uuid, typeFactory.createSqlType(SqlTypeName.UUID), 
SqlTypeName.UUID);

Review Comment:
   SqlUuidLiteral cannot be null, but the RexLiteral can be null, due to 
simplifications of expressions such as `CAST(NULL AS UUID)`. 



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

Reply via email to