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

Denys Kuzmenko commented on HIVE-29773:
---------------------------------------

Merged to master
Thanks for the reviews, [~Aggarwal_Raghav], [~difin]!

> Iceberg: Support CAST(x AS VARIANT)
> -----------------------------------
>
>                 Key: HIVE-29773
>                 URL: https://issues.apache.org/jira/browse/HIVE-29773
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Iceberg integration
>    Affects Versions: 4.2.0
>            Reporter: Denys Kuzmenko
>            Assignee: Denys Kuzmenko
>            Priority: Major
>              Labels: pull-request-available
>
> CAST(x AS VARIANT) (also callable as variant(x)) builds a variant whose 
> primitive type matches the input:
> - supported inputs: boolean, integral types, float, double, decimal, 
> string/char/varchar, binary, date, timestamp and
>   timestamp with local time zone (truncated to microseconds), arrays element 
> by element, and a variant (identity);
> - struct and map inputs are rejected at compile time, as in Spark.
> parse_json goes through JSON text, which has no binary, date or timestamp 
> types, so those values end up as strings;
> the cast keeps their type.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to