Github user hyunsik commented on a diff in the pull request:

    https://github.com/apache/tajo/pull/612#discussion_r33211777
  
    --- Diff: 
tajo-core/src/main/java/org/apache/tajo/engine/planner/physical/SeqScanExec.java
 ---
    @@ -228,26 +237,15 @@ public Tuple next() throws IOException {
           return null;
         }
     
    -    Tuple tuple;
    -    Tuple outTuple = new VTuple(outColumnNum);
    -
    -    if (!plan.hasQual()) {
    -      if ((tuple = scanner.next()) != null) {
    -        projector.eval(tuple, outTuple);
    -        outTuple.setOffset(tuple.getOffset());
    -        return outTuple;
    -      } else {
    -        return null;
    -      }
    -    } else {
    -      while ((tuple = scanner.next()) != null) {
    -        if (qual.eval(tuple).isTrue()) {
    -          projector.eval(tuple, outTuple);
    -          return outTuple;
    -        }
    -      }
    -      return null;
    +    while(scanIt.hasNext()) {
    +      Tuple outTuple = new VTuple(outColumnNum);
    --- End diff --
    
    It is actually for every row. While condition is just for check if there is 
next row, and every while loop will be just returned for each tuple.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to