[ 
https://issues.apache.org/jira/browse/FLINK-1002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14097487#comment-14097487
 ] 

ASF GitHub Bot commented on FLINK-1002:
---------------------------------------

Github user StephanEwen commented on the pull request:

    https://github.com/apache/incubator-flink/pull/65#issuecomment-52231599
  
    I think this one is tricky. If not all the header lines are in the first 
split, it will not work - worse, the behavior changes with the DOP.
    
    One line is safe, because it is always in the first split, but any 
successive one is not safe.
    
    Only sure way to do this for more than one line is run code on the master 
and modify the splits.
    
    There is a hook for something like that in the FileOutputFormat: The 
`InitializeOnMaster` interface. We can make sure such a hook exists for input 
formats as well.
    
    BTW: When do you ever have more than one header line?


> Add CSVReader support to ignore multiple lines at the beginning of a document
> -----------------------------------------------------------------------------
>
>                 Key: FLINK-1002
>                 URL: https://issues.apache.org/jira/browse/FLINK-1002
>             Project: Flink
>          Issue Type: Improvement
>            Reporter: Bastian Köcher
>            Assignee: Markus Holzemer
>
> At the moment the CSVReader only supports to skip the first line, but for 
> example I've got a format where multiple lines at the beginning need to be 
> skipped. A function to skip multiple lines at the beginning would be very 
> useful.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to