cxzl25 opened a new pull request, #1340:
URL: https://github.com/apache/orc/pull/1340

   ### What changes were proposed in this pull request?
   searchArgument takes effect only when rowIndexStride is greater than 0.
   
   ### Why are the changes needed?
   When `orc.row.index.stride` is set to a negative number, using 
searchArgument will throw NegativeArraySizeException.
   
   ```java
   Caused by: java.lang.NegativeArraySizeException
        at 
org.apache.orc.impl.RecordReaderImpl$SargApplier.pickRowGroups(RecordReaderImpl.java:1164)
        at 
org.apache.orc.impl.RecordReaderImpl.pickRowGroups(RecordReaderImpl.java:1273)
        at 
org.apache.orc.impl.RecordReaderImpl.readStripe(RecordReaderImpl.java:1293)
        at 
org.apache.orc.impl.RecordReaderImpl.advanceStripe(RecordReaderImpl.java:1345)
        at 
org.apache.orc.impl.RecordReaderImpl.advanceToNextRow(RecordReaderImpl.java:1388)
        at 
org.apache.orc.impl.RecordReaderImpl.<init>(RecordReaderImpl.java:367)
   ```
   
   
   ### How was this patch tested?
   add UT
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to