[ 
https://issues.apache.org/jira/browse/HIVE-27272?focusedWorklogId=858148&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-858148
 ]

ASF GitHub Bot logged work on HIVE-27272:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 20/Apr/23 09:06
            Start Date: 20/Apr/23 09:06
    Worklog Time Spent: 10m 
      Work Description: InvisibleProgrammer opened a new pull request, #4251:
URL: https://github.com/apache/hive/pull/4251

   
   
   ### What changes were proposed in this pull request?
   ObjectCache set up for Iceber CLI drivers (both for positive and negative)
   
   
   ### Why are the changes needed?
   Qtests failed if they had a `limit` clause. 
   Example: 
   
   ```sql
   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;
   ```
   
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   
   ### How was this patch tested?
   With QTests




Issue Time Tracking
-------------------

    Worklog Id:     (was: 858148)
    Time Spent: 50m  (was: 40m)

> Limit query causes error at qtests
> ----------------------------------
>
>                 Key: HIVE-27272
>                 URL: https://issues.apache.org/jira/browse/HIVE-27272
>             Project: Hive
>          Issue Type: Bug
>          Components: Tests
>            Reporter: Zsolt Miskolczi
>            Assignee: Zsolt Miskolczi
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> Sample query: 
> {code:sql}
> 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; 
> {code}
> {code}
> 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] 
> {code}
> Important note: check not only the positive but the negative tests as well!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to