xudong963 commented on a change in pull request #1050:
URL: https://github.com/apache/arrow-datafusion/pull/1050#discussion_r716133547



##########
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:
       Good sight! I deep into `csv::infer_schema_from_files` and find them 
nearly do the same thing. 




-- 
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]


Reply via email to