Paras Sethia created HIVE-15818:
-----------------------------------
Summary: Union of complex data types and NULL
Key: HIVE-15818
URL: https://issues.apache.org/jira/browse/HIVE-15818
Project: Hive
Issue Type: Bug
Components: Parser, Types
Reporter: Paras Sethia
There is a possible bug in validation of union queries involving complex data
types. The following query reproduces it:
SELECT array(1, 2) a UNION ALL SELECT NULL;
Error: Error while compiling statement: FAILED: SemanticException Schema of
both sides of union should match: Column a is of type array<int> on first table
and type void on second table. Cannot tell the position of null AST.
(state=42000,code=40000)
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)