[
https://issues.apache.org/jira/browse/FLINK-40556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18113716#comment-18113716
]
Ramin Gharib commented on FLINK-40556:
--------------------------------------
It is fixed as part of:
https://github.com/apache/flink/pull/29128
> 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
> Priority: Major
>
> 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)