connec commented on issue #11472: URL: https://github.com/apache/datafusion/issues/11472#issuecomment-2230939423
I see, so an approach could be to: 1. Add `newlines_in_values: bool` to [`arrow_csv::reader::Format`](https://docs.rs/arrow-csv/latest/arrow_csv/reader/struct.Format.html). The implementation could use this to consume terminators within quotes. 2. Add `newlines_in_values: bool` to [`datafusion::config::CsvOptions`](https://docs.rs/datafusion/latest/datafusion/config/struct.CsvOptions.html) (and [`datafusion::datasource::file_format::csv::CsvFormat`](https://docs.rs/datafusion/latest/datafusion/datasource/file_format/csv/struct.CsvFormat.html)). The implementation could use this in two ways: 1. Pass the `newlines_in_values` flag on to `csv-arrow`. 2. Disable parallelism in CSV scanning (I don't think it would be possible to reliably determine if you're inside a quoted string without seeing the whole file). -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
