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

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

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


##########
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:
   I have tried to add test to cover, but failed.
   Because when I try to add test `explain`, but if sql is `explain`, df don't execute these code.



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