You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Gabor Kaszab (Jira)" <ji...@apache.org> on 2021/06/16 12:48:00 UTC

[jira] [Created] (IMPALA-10752) Support for UNION two structs

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: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org