You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "lucas.wu (Jira)" <ji...@apache.org> on 2022/06/14 13:41:00 UTC

[jira] [Created] (FLINK-28058) add option SKIP_FIRST_DATA_ROW

lucas.wu created FLINK-28058:
--------------------------------

             Summary: add option SKIP_FIRST_DATA_ROW
                 Key: FLINK-28058
                 URL: https://issues.apache.org/jira/browse/FLINK-28058
             Project: Flink
          Issue Type: New Feature
          Components: Connectors / FileSystem, Formats (JSON, Avro, Parquet, ORC, SequenceFile)
            Reporter: lucas.wu


now CsvFileSystemFormatFactory.CsvInputFormat do not support add option SKIP_FIRST_DATA_ROW , when my csv file has header, source table will read file's header ,then collect to downstream. but i do not need the header, i hope i can set the option when i create table.likeĀ 

"CREATE TABLE file_source (" +
"a STRING," +
"b STRING," +
"c STRING" +
") " +
"WITH (\n" +
" 'connector' = 'filesystem',\n" +
" 'path' = 'file:///xxx/xxx/test_sink.csv',\n" +
" 'format' = 'csv' ,\n" +
" 'csv.ignore-first-line' = 'true' " +
"" +
")"



--
This message was sent by Atlassian Jira
(v8.20.7#820007)