xubo245 commented on a change in pull request #3273:
URL: https://github.com/apache/carbondata/pull/3273#discussion_r417740595



##########
File path: 
sdk/sdk/src/main/java/org/apache/carbondata/sdk/file/CarbonReader.java
##########
@@ -87,9 +91,13 @@ public boolean hasNext() throws IOException, 
InterruptedException {
         readers.set(index, null);
         index++;
         currentReader = readers.get(index);
-        return currentReader.nextKeyValue();
+        boolean result = currentReader.nextKeyValue();

Review comment:
       currentReader set null only when (0 == readers.size();
   
   before this code, already add:
   
   ``` if (0 == readers.size()  {
         return false;
       }```




----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to