Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-15818

Union of complex data types and NULL

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Parser, Types
    • Labels:
      None

      Description

      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)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              parassethia Paras Sethia
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: