This PR aims to fix incorrect Decimal assert in LeafFilterFactory.
Why are the changes needed?
Due to the wrong assertion, ArrayIndexOutOfBoundsException happens.
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index -2 out of bounds for length 19
at org.apache.hadoop.hive.common.type.FastHiveDecimalImpl.fastSerialize64(FastHiveDecimalImpl.java:2205)
at org.apache.hadoop.hive.common.type.FastHiveDecimal.fastSerialize64(FastHiveDecimal.java:290)
at org.apache.hadoop.hive.serde2.io.HiveDecimalWritable.serialize64(HiveDecimalWritable.java:537)
at org.apache.orc.impl.filter.leaf.LeafFilterFactory.createBetweenFilter(LeafFilterFactory.java:165)
How was this patch tested?
UT & GA
Was this patch authored or co-authored using generative AI tooling?
What changes were proposed in this pull request?
This PR aims to fix incorrect Decimal assert in LeafFilterFactory.
Why are the changes needed?
Due to the wrong assertion,
ArrayIndexOutOfBoundsException
happens.How was this patch tested?
UT & GA
Was this patch authored or co-authored using generative AI tooling?
No