You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "alamb (via GitHub)" <gi...@apache.org> on 2023/06/09 11:48:36 UTC

[GitHub] [arrow-datafusion] alamb commented on a diff in pull request #6610: fix: analyze/optimize plan in `CREATE TABLE AS SELECT`

alamb commented on code in PR #6610:
URL: https://github.com/apache/arrow-datafusion/pull/6610#discussion_r1224201860


##########
datafusion/core/src/execution/context.rs:
##########
@@ -495,6 +495,7 @@ impl SessionContext {
         }
 
         let input = Arc::try_unwrap(input).unwrap_or_else(|e| e.as_ref().clone());
+        let input = self.state().optimize(&input)?;

Review Comment:
   That is important 👍 
   
   I wonder if there is any test we can add to cover this case and prevent a regression?



-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org