Skip to content

[format] Test CsvParser instead of Jackson in CsvFileFormatTest - #11552

Draft
chenjian2664 wants to merge 1 commit into
apache:masterfrom
chenjian2664:chenjian2664/shifting/test-csv-parser-instead-of-jackson
Draft

chenjian2664 wants to merge 1 commit into
apache:masterfrom
chenjian2664:chenjian2664/shifting/test-csv-parser-instead-of-jackson

Conversation

@chenjian2664

Copy link
Copy Markdown
Contributor

Purpose

Since #6508 replaced Jackson with CsvParser, the parse helper has called Jackson's CsvMapper directly, so the six tests that use it cannot catch regressions in Paimon's parser. The assertThat(x == null) checks for empty fields also never assert anything.

The helper now uses CsvParser with default options, and those checks use isNull(). The inputs no longer end with a newline because CsvFileReader strips line delimiters before parsing.

Tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant