You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Zoltan Haindrich (Jira)" <ji...@apache.org> on 2021/11/23 08:04:00 UTC
[jira] [Resolved] (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 ]
Zoltan Haindrich resolved HIVE-25582.
-------------------------------------
Fix Version/s: 4.0.0
Resolution: Fixed
merged into master. Thank you [~dengzh]!
> 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
> Labels: pull-request-available
> Fix For: 4.0.0
>
> Time Spent: 2.5h
> Remaining Estimate: 0h
>
> 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.20.1#820001)