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 08:35:00 UTC
[jira] [Comment Edited] (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:comment-tabpanel&focusedCommentId=18111539#comment-18111539 ]
Timo Walther edited comment on FLINK-37926 at 9/7/26 8:34 AM:
--------------------------------------------------------------
Fixed in master: [5d3597c253fcb6383ca74df9c43257c283dc821e|https://github.com/apache/flink/commit/5d3597c253fcb6383ca74df9c43257c283dc821e] (for ARRAY)
was (Author: sergey nuyanzin):
Merged as [5d3597c253fcb6383ca74df9c43257c283dc821e|https://github.com/apache/flink/commit/5d3597c253fcb6383ca74df9c43257c283dc821e]
> 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)