coderex2522 commented on code in PR #1099:
URL: https://github.com/apache/orc/pull/1099#discussion_r859489437


##########
c++/src/Reader.cc:
##########
@@ -1133,7 +1133,7 @@ namespace orc {
     if (currentRowInStripe == 0) {
       startNextStripe();
     }
-    uint64_t rowsToRead =
+    uint64_t rowsToRead = currentStripe >= lastStripe ? 0 :

Review Comment:
   @stiga-huang Thanks! I think this bug is mainly caused by the fact that the 
currentStripe variable is updated while the rowsInCurrentStripe variable is not 
updated at the same time. So would it be better to reset the 
rowsInCurrentStripe variable at line 1088?



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