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

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

     [ https://issues.apache.org/jira/browse/FLINK-28058?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martijn Visser reassigned FLINK-28058:
--------------------------------------

    Assignee: lucas.wu

> 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
>            Assignee: lucas.wu
>            Priority: Major
>
> 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)