[ https://issues.apache.org/jira/browse/FLINK-10684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16812036#comment-16812036 ]
Liya Fan commented on FLINK-10684: ---------------------------------- In my opinion, it may be reasonable not to print invalid lines, because if there is a large number of invalid lines, it will explode the logs. As a compromise, it may be beneficial to print the first invalid log. > Improve the CSV reading process > ------------------------------- > > Key: FLINK-10684 > URL: https://issues.apache.org/jira/browse/FLINK-10684 > Project: Flink > Issue Type: Improvement > Components: API / DataSet > Reporter: Xingcan Cui > Priority: Major > > CSV is one of the most commonly used file formats in data wrangling. To load > records from CSV files, Flink has provided the basic {{CsvInputFormat}}, as > well as some variants (e.g., {{RowCsvInputFormat}} and > {{PojoCsvInputFormat}}). However, it seems that the reading process can be > improved. For example, we could add a built-in util to automatically infer > schemas from CSV headers and samples of data. Also, the current bad record > handling method can be improved by somehow keeping the invalid lines (and > even the reasons for failed parsing), instead of logging the total number > only. > This is an umbrella issue for all the improvements and bug fixes for the CSV > reading process. -- This message was sent by Atlassian JIRA (v7.6.3#76005)