[
https://issues.apache.org/jira/browse/FLINK-37926?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18112238#comment-18112238
]
Timo Walther commented on FLINK-37926:
--------------------------------------
Fixed in master: 4ad8e8372f28a8aeac2b4b28077bfed3049e9b7a (for ROW and
STRUCTURED)
> Support type casting between variant and constructed type
> ---------------------------------------------------------
>
> Key: FLINK-37926
> URL: https://issues.apache.org/jira/browse/FLINK-37926
> Project: Flink
> Issue Type: Sub-task
> Reporter: Xuannan Su
> Assignee: Ramin Gharib
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.4.0
>
>
> h2. Casting
> * A primitive value Variant can be cast to the corresponding type. An
> exception will be thrown in case of a type error if `CAST` is used, and null
> will be returned if `TRY_CAST` is used.
> * An array variant can be cast to ARRAY<T> type, and each element will be
> cast to type T. An exception will be thrown in case of a type error if `CAST`
> is used, and null will be returned if `TRY_CAST` is used.
> * An object variant can be cast to ROW or STRUCTURED type. An exception will
> be thrown in case of a type error if `CAST` is used, and null will be
> returned if `TRY_CAST` is used.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)