Ramin Gharib created FLINK-40556:
------------------------------------

             Summary: Support UUID value literals in the Table API
                 Key: FLINK-40556
                 URL: https://issues.apache.org/jira/browse/FLINK-40556
             Project: Flink
          Issue Type: Sub-task
            Reporter: Ramin Gharib
            Assignee: Ramin Gharib


A UUID currently has no literal form in the Table API / expression layer. 
lit(java.util.UUID) and materializing a UUID column via 
TableEnvironment.fromValues(...) fail, because RexBuilder.makeLiteral has no 
UUID case — only the SQL parser produces a UUID literal (UUID '...'). A UUID 
value therefore has to be produced via CAST(... AS UUID) from a string.
Add UUID to the value-literal path (ValueLiteralExpression → 
RexBuilder.makeUuidLiteral) so lit(uuid) and UUID input columns work in the 
Table API. Surfaced while writing CastFunctionITCase for FLINK-40487.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to