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

    https://github.com/apache/incubator-flink/pull/201#discussion_r20760689
  
    --- Diff: 
flink-java/src/main/java/org/apache/flink/api/java/io/CsvInputFormat.java ---
    @@ -130,6 +216,21 @@ public OUT readRecord(OUT reuse, byte[] bytes, int 
offset, int numBytes) {
                        numBytes--;
                }
                
    +           if (commentPrefix != null && commentPrefix.length <= numBytes) {
    +                   //check record for comments
    +                   Boolean isComment = true;
    +                   for (int i = 0; i < commentPrefix.length; i++) {
    +                           if (commentPrefix[i] != bytes[offset + i]) {
    +                                   isComment = false;
    +                                   break;
    +                           }
    +                   }
    +                   if (isComment) {
    +                           this.commentCount++;
    +                           return nextRecord(reuse);
    --- End diff --
    
    My intention was to capture the null in the DelimitedInputFormat before it 
is given to the DataSourceTask.


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