Gabor Kaszab created IMPALA-10752:
-------------------------------------

             Summary: Support for UNION two structs
                 Key: IMPALA-10752
                 URL: https://issues.apache.org/jira/browse/IMPALA-10752
             Project: IMPALA
          Issue Type: New Feature
          Components: Backend, Frontend
            Reporter: Gabor Kaszab


{code:java}
select id, tiny_struct from complextypes_structs
union all
select id, tiny_struct from complextypes_structs;
{code}
Result is the following error:
{code:java}
ERROR: AnalysisException: Incompatible return types 'STRUCT<b:BOOLEAN>' and 
'STRUCT<b:BOOLEAN>' of exprs 'tiny_struct' and 'tiny_struct'.
{code}
where complextypes_structs is the following (note, it is same with parquet):
{code:java}
CREATE TABLE complextypes_structs (
    id int,
    tiny_struct struct<b:boolean>,
    small_struct struct<i:int, s:string>
) STORED AS ORC;
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to