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

    https://github.com/apache/tajo/pull/277#discussion_r21209793
  
    --- Diff: 
tajo-storage/src/main/java/org/apache/tajo/storage/text/DelimitedTextFile.java 
---
    @@ -355,21 +368,58 @@ public float getProgress() {
     
         @Override
         public Tuple next() throws IOException {
    +
    +      if (!reader.isReadable()) {
    +        return null;
    +      }
    +
    +      if (targets.length == 0) {
    +        return EmptyTuple.get();
    +      }
    +
    +      VTuple tuple = new VTuple(schema.size());
    +
           try {
    -        if (!reader.isReadable()) return null;
     
    -        ByteBuf buf = readLine();
    -        if (buf == null) return null;
    +        // this loop will continue until one tuple is build or EOS (end of 
stream).
    +        do {
     
    -        if (targets.length == 0) {
    -          return EmptyTuple.get();
    -        }
    +          ByteBuf buf = readLine();
    +          if (buf == null) {
    +            return null;
    +          }
    +
    +          try {
    +
    +            deserializer.deserialize(buf, tuple);
    +
    --- End diff --
    
    Could you move the {{recordCount}} to this line?


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