[ 
https://issues.apache.org/jira/browse/FLINK-40556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18115608#comment-18115608
 ] 

Timo Walther commented on FLINK-40556:
--------------------------------------

[~Sergey Nuyanzin] [https://github.com/apache/flink/pull/29128] fully 
implements this ticket. Reopened.

> 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
>              Labels: pull-request-available
>             Fix For: 2.4.0
>
>
> 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