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

except subquery throws nullpointer with cbo disabled

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.0
    • Component/s: None

      Description

      Except and intersect was only implemented with Calcite in HIVE-12764. If cbo is disabled it would just throw a nullpointer exception. We should at least throw a SemanticException stating this is not supported.

      Repro:
      set hive.cbo.enable=false;
      create table test(id int);
      insert into table test values(1);
      select id from test except select id from test;

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pvargacl Peter Varga
                Reporter:
                pvargacl Peter Varga
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m