[
https://issues.apache.org/jira/browse/HIVE-6786?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Prasanth J updated HIVE-6786:
-----------------------------
Description:
Turning on ORC PPD makes split computation fail for a 10Tb benchmark.
Narrowed down to the following code fragment
https://github.com/apache/hive/blob/branch-0.13/ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcInputFormat.java#L757
{code}
includeStripe[i] = (i > stripeStats.size()) ||
isStripeSatisfyPredicate(stripeStats.get(i), sarg,
filterColumns);
{code}
I would guess that should be a >=, but [~prasanth_j], can you comment if that
is the right fix?
Stack trace will look like:
{code}
Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:604)
at java.util.ArrayList.get(ArrayList.java:382)
at
org.apache.hadoop.hive.ql.io.orc.OrcInputFormat$SplitGenerator.run(OrcInputFormat.java:761)
... 3 more
{code}
was:
Turning on ORC PPD makes split computation fail for a 10Tb benchmark.
Narrowed down to the following code fragment
https://github.com/apache/hive/blob/branch-0.13/ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcInputFormat.java#L757
{code}
includeStripe[i] = (i > stripeStats.size()) ||
isStripeSatisfyPredicate(stripeStats.get(i), sarg,
filterColumns);
{code}
I would guess that should be a >=, but [~prasanth_j], can you comment if that
is the right fix?
> Off by one error in ORC PPD
> ----------------------------
>
> Key: HIVE-6786
> URL: https://issues.apache.org/jira/browse/HIVE-6786
> Project: Hive
> Issue Type: Bug
> Affects Versions: 0.13.0
> Reporter: Gopal V
> Assignee: Prasanth J
> Priority: Critical
> Fix For: 0.13.0
>
> Attachments: HIVE-6786.1.patch
>
>
> Turning on ORC PPD makes split computation fail for a 10Tb benchmark.
> Narrowed down to the following code fragment
> https://github.com/apache/hive/blob/branch-0.13/ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcInputFormat.java#L757
> {code}
> includeStripe[i] = (i > stripeStats.size()) ||
> isStripeSatisfyPredicate(stripeStats.get(i), sarg,
> filterColumns);
> {code}
> I would guess that should be a >=, but [~prasanth_j], can you comment if that
> is the right fix?
> Stack trace will look like:
> {code}
> Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.rangeCheck(ArrayList.java:604)
> at java.util.ArrayList.get(ArrayList.java:382)
> at
> org.apache.hadoop.hive.ql.io.orc.OrcInputFormat$SplitGenerator.run(OrcInputFormat.java:761)
> ... 3 more
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)