You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Zhihua Deng (Jira)" <ji...@apache.org> on 2021/10/01 00:55:00 UTC

[jira] [Updated] (HIVE-25582) Empty result when using offset limit with MR

     [ https://issues.apache.org/jira/browse/HIVE-25582?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zhihua Deng updated HIVE-25582:
-------------------------------
    Description: The _mr.ObjectCache_ caches nothing, every time when the limit [retrieving global counter from the cache|https://github.com/apache/hive/blob/7b3ecf617a6d46f48a3b6f77e0339fd4ad95a420/ql/src/java/org/apache/hadoop/hive/ql/exec/LimitOperator.java#L150-L161], a new AtomicInteger will be returned. This make offset _<= currentCountForAllTasksInt_ always be evaluated to false, as _offset > 0_, the operator will skip all rows.  (was: The _mr.ObjectCache_ caches nothing, every time when the limit [retrieving global counter from the cache|https://github.com/apache/hive/blob/7b3ecf617a6d46f48a3b6f77e0339fd4ad95a420/ql/src/java/org/apache/hadoop/hive/ql/exec/LimitOperator.java#L150-L161], a new AtomicInteger will be returned. This make offset _<= currentCountForAllTasksInt_ always __ be __ evaluated to false_,_ as _offset > 0_, the operator will skip all rows.)

> Empty result when using offset limit with MR
> --------------------------------------------
>
>                 Key: HIVE-25582
>                 URL: https://issues.apache.org/jira/browse/HIVE-25582
>             Project: Hive
>          Issue Type: Bug
>          Components: Operators
>    Affects Versions: 4.0.0
>            Reporter: Zhihua Deng
>            Assignee: Zhihua Deng
>            Priority: Major
>
> The _mr.ObjectCache_ caches nothing, every time when the limit [retrieving global counter from the cache|https://github.com/apache/hive/blob/7b3ecf617a6d46f48a3b6f77e0339fd4ad95a420/ql/src/java/org/apache/hadoop/hive/ql/exec/LimitOperator.java#L150-L161], a new AtomicInteger will be returned. This make offset _<= currentCountForAllTasksInt_ always be evaluated to false, as _offset > 0_, the operator will skip all rows.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)