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

Seek to end of BitFieldReader causes EOFException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      If a boolean stream ends with "all nulls", a seek to right after the null start will cause an `EOFException`.

      The root cause is very simple https://github.com/apache/orc/blob/master/java/core/src/java/org/apache/orc/impl/BitFieldReader.java#L98

      The seek forward in the input stream consumes all of the bytes, and then the next line attempts to "load" a new value into the reader. Instead when the skip is aligned to the byte end, the load should be delayed until the next read call.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dain Dain Sundstrom
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: