matthewgapp commented on code in PR #7637:
URL: https://github.com/apache/arrow-datafusion/pull/7637#discussion_r1335234281


##########
datafusion/core/src/execution/context.rs:
##########
@@ -534,6 +534,13 @@ impl SessionContext {
                 let physical = DataFrame::new(self.state(), input);
 
                 let batches: Vec<_> = physical.collect_partitioned().await?;
+                let schema = {

Review Comment:
   This solves the bug but feels like the input.schema() should already be 
correct. We shouldn't need to reach into the record batch to find out the true 
schema



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