Skip to content

CSVParser: Identify duplicates in null, empty and blank header names#279

Merged
garydgregory merged 1 commit into
apache:masterfrom
aherbert:csvparser-duplicate-missing-headers
Oct 26, 2022
Merged

CSVParser: Identify duplicates in null, empty and blank header names#279
garydgregory merged 1 commit into
apache:masterfrom
aherbert:csvparser-duplicate-missing-headers

Conversation

@aherbert

Copy link
Copy Markdown
Contributor

This changes the CSVParser to throw on a duplicate null header name when using DuplicateHeaderMode.DISALLOW. This matches the behaviour of CSVFormat.

@garydgregory garydgregory left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Duplicate missing header names are handled consistently between
CSVFormat and CSVParser.

Document that the ignore header case flag is for parser behaviour.

Update CSVDuplicateHeaderTest to add the ignore header case flag to
tests. Add test cases with case insensitive duplicates.
@aherbert aherbert force-pushed the csvparser-duplicate-missing-headers branch from 73f06e5 to 69aa686 Compare October 25, 2022 21:26
@garydgregory garydgregory changed the title CSVParser: Identify duplicates in null, empty and blank header names (WIP) CSVParser: Identify duplicates in null, empty and blank header names Oct 26, 2022
@garydgregory garydgregory merged commit 5a7b030 into apache:master Oct 26, 2022
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.

2 participants