[ https://issues.apache.org/jira/browse/HIVE-27690?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated HIVE-27690: ---------------------------------- Labels: pull-request-available (was: ) > 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 > > {{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)