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

Limit query causes error at qtests

    XMLWordPrintableJSON

Details

    Description

      Sample query: 

      create table icebergtable (id int, name string) stored by iceberg stored as parquet;
      
      insert into icebergtable values (1, 'Joe'), (2, 'Jack');
      
      select * from icebergtable limit 1; 
      
      Error: 
      
      java.lang.IllegalStateException: Cannot get a query cache object while working outside of HS2, this is unexpected
              at org.apache.hadoop.hive.ql.exec.LimitOperator.initializeOp(LimitOperator.java:77) ~[hive-exec-3.1.3000.2023.0.15.0-SNAPSHOT.jar:3.1.3000.2023.0.15.0-SNAPSHOT]
              at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:374) ~[hive-exec-3.1.3000.2023.0.15.0-SNAPSHOT.jar:3.1.3000.2023.0.15.0-SNAPSHOT]
              at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:571) ~[hive-exec-3.1.3000.2023.0.15.0-SNAPSHOT.jar:3.1.3000.2023.0.15.0-SNAPSHOT]
              at org.apache.hadoop.hive.ql.exec.Operator.initializeChildren(Operator.java:523) ~[hive-exec-3.1.3000.2023.0.15.0-SNAPSHOT.jar:3.1.3000.2023.0.15.0-SNAPSHOT] 
      

      Important note: check not only the positive but the negative tests as well!

      Attachments

        Issue Links

          Activity

            People

              InvisibleProgrammer Zsolt Miskolczi
              InvisibleProgrammer Zsolt Miskolczi
              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 - 1h 10m
                  1h 10m