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 this case, but failed.
Because when I try to add test `explain` to show `plan tree`, 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]