[ 
https://issues.apache.org/jira/browse/FLINK-37926?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ramin Gharib updated FLINK-37926:
---------------------------------
    Description: 
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. 

> 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
>
> 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)

Reply via email to