You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Timo Walther (Jira)" <ji...@apache.org> on 2026/09/07 10:13:00 UTC
[jira] [Closed] (FLINK-37926) Support type casting between variant and constructed type
[ https://issues.apache.org/jira/browse/FLINK-37926?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Timo Walther closed FLINK-37926.
--------------------------------
Resolution: Fixed
Fixed in master: 78b0df60e341c7c0996b2bd9f511acf9e293a647 (for MAP)
> 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)