Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-10752

Support for UNION two structs

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Backend, Frontend
    • Labels:
      None

      Description

      select id, tiny_struct from complextypes_structs
      union all
      select id, tiny_struct from complextypes_structs;
      

      Result is the following error:

      ERROR: AnalysisException: Incompatible return types 'STRUCT<b:BOOLEAN>' and 'STRUCT<b:BOOLEAN>' of exprs 'tiny_struct' and 'tiny_struct'.
      

      where complextypes_structs is the following (note, it is same with parquet):

      CREATE TABLE complextypes_structs (
          id int,
          tiny_struct struct<b:boolean>,
          small_struct struct<i:int, s:string>
      ) STORED AS ORC;
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              gaborkaszab Gabor Kaszab
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: