You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Krisztian Kasa (Jira)" <ji...@apache.org> on 2023/12/18 05:19:00 UTC

[jira] [Updated] (HIVE-27690) Handle casting NULL literal to complex type

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

Krisztian Kasa updated HIVE-27690:
----------------------------------
    Fix Version/s: 4.1.0
                       (was: 4.0.0)

> Handle casting NULL literal to complex type
> -------------------------------------------
>
>                 Key: HIVE-27690
>                 URL: https://issues.apache.org/jira/browse/HIVE-27690
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Krisztian Kasa
>            Assignee: Krisztian Kasa
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.1.0
>
>
> {{NULL}} literal values of a complex type column are treated as void typed literals.
> {code:java}
> create table explain_npe_map    ( c1 map<string, string> );
> explain select c1 from explain_npe_map where c1 is null;
> {code}
> [https://github.com/apache/hive/blob/88bc8269a64d31eee372bf3602933c75283c686b/ql/src/test/results/clientpositive/llap/analyze_npe.q.out#L142]
> The goal of this patch is to use the original complex type:
> {code:java}
>           Select Operator
>             expressions: Const map<string,string> null (type: map<string,string>)
> {code}
> Void typed {{NULL}} literals makes CTAS statements are fail since the original complex type can not be inferred.



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