Uploaded image for project: 'ORC'
  1. ORC
  2. ORC-1332

Avoid NegativeArraySizeException when using searchArgument

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.6.14, 1.7.7, 1.8.1
    • 1.8.2, 1.7.8
    • None
    • None

    Description

      When orc.row.index.stride is set to a negative number, using searchArgument will throw NegativeArraySizeException.

       

      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) 

      Attachments

        Activity

          People

            dzcxzl dzcxzl
            dzcxzl dzcxzl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: