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

JDBC: Strip the default union prefix for un-enclosed UNION queries

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.0, 3.1.1
    • Fix Version/s: 4.0.0
    • Component/s: Logical Optimizer
    • Labels:
      None

      Description

      beeline> select 1  union all select 2;
      
      +----------+
      | _u1._c0  |
      +----------+
      | 2        |
      | 1        |
      +----------+
      

      The _u1 is superfluous and harmful to result schema parsing.

        Attachments

        1. HIVE-21768.4.patch
          8 kB
          Gopal V
        2. HIVE-21768.3.patch
          3 kB
          Gopal V
        3. HIVE-21768.2.patch
          2 kB
          Gopal V
        4. HIVE-21768.1.patch
          0.9 kB
          Gopal V

          Activity

            People

            • Assignee:
              gopalv Gopal V
              Reporter:
              gopalv Gopal V
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: