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


##########
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:
   Can the UUID be null? According to SqlUuidLiteral‘s implementation, it can't.
   ```
     public UUID getUuid() {
       return (UUID) requireNonNull(value, "value");
     }
   ```



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