houqp commented on a change in pull request #1050:
URL: https://github.com/apache/arrow-datafusion/pull/1050#discussion_r716091636
##########
File path: datafusion/src/physical_plan/csv.rs
##########
@@ -263,12 +264,20 @@ impl CsvExec {
filenames: &[String],
options: &CsvReadOptions,
) -> Result<Schema> {
- Ok(csv::infer_schema_from_files(
- filenames,
- options.delimiter,
- Some(options.schema_infer_max_records),
- options.has_header,
- )?)
+ let mut schemas = Vec::new();
+ for filename in filenames {
Review comment:
what's the reason for reimplementing `csv::infer_schema_from_files` here?
--
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]