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

Union of complex data types and NULL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Parser, Types
    • 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

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

            Dates

              Created:
              Updated: