afedulov commented on a change in pull request #17598: URL: https://github.com/apache/flink/pull/17598#discussion_r770140011
########## File path: flink-formats/flink-csv/src/main/java/org/apache/flink/formats/csv/CsvToRowDataConverters.java ########## @@ -305,7 +311,7 @@ private CsvToRowDataConverter createArrayConverter(ArrayType arrayType) { } private static void validateArity(int expected, int actual, boolean ignoreParseErrors) { - if (expected != actual && !ignoreParseErrors) { + if (expected > actual && !ignoreParseErrors) { Review comment: The `CsvFormat.Reader` read() method needs to read elements according to the full schema from the file but emmit elements with a potentially reduced number of rows according to the projection pushdown. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org