Skip to content

Additional validation of CSV Dialect parameters #113796

Closed
@serhiy-storchaka

Description

@serhiy-storchaka

Feature or enhancement

CSV writer and reader allow to configure parameters of the CSV dialect. They check for some incompatible combination, for example quotechar must be set if quoting enabled. But it is still possible to specify values that produce ambiguous output which cannot be parsed neither by the CSV reader not by any other CSV parser. For example if any two of delimiter, quotechar or escapechar match. The error can be only noticed when try to read the CSV file, and it can simply produce wrong result instead of failing.

I propose to add more validation checks in addition to existing checks in the Dialect constructor.

Linked PRs

Metadata

Metadata

Labels

type-featureA feature request or enhancement

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions