Jefffrey commented on code in PR #9134:
URL: https://github.com/apache/arrow-datafusion/pull/9134#discussion_r1478860384


##########
datafusion/core/src/datasource/listing/table.rs:
##########
@@ -548,7 +549,7 @@ impl ListingTable {
         })?;
 
         // Add the partition columns to the file schema
-        let mut builder = SchemaBuilder::from(file_schema.fields());
+        let mut builder = SchemaBuilder::from(file_schema.deref().clone());

Review Comment:
   ```suggestion
           let mut builder = 
SchemaBuilder::from(file_schema.as_ref().to_owned());
   ```
   
   nit: I think this is achieves the same but doesn't require importing `Deref`



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