wgtmac opened a new pull request #645:
URL: https://github.com/apache/orc/pull/645


   ### What changes were proposed in this pull request?
   C++ ORC ColumnReaders of some types have cached buffer state to issue next 
I/O. This is fine if we read streams continuously. However, if we try to skip 
some row groups and seek to a random row group, the cached buffer state is 
wrong and may lead to undefined behavior. This patch fixes it by clearing all 
stream states in the ColumnReader.
   
   ### Why are the changes needed?
   This fix is a prerequisite to introduce PPD to C++ ORC reader in that the 
read pattern requires seeking to any row group.
   
   ### How was this patch tested?
   This is a trivial fix and just make sure it doesn't break any unit test case.
   


----------------------------------------------------------------
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.

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


Reply via email to