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.