joroKr21 commented on code in PR #8960:
URL: https://github.com/apache/arrow-datafusion/pull/8960#discussion_r1471574267
##########
datafusion/optimizer/src/optimize_projections.rs:
##########
@@ -867,7 +867,9 @@ fn rewrite_projection_given_requirements(
return if let Some(input) =
optimize_projections(&proj.input, config, &required_indices)?
{
- if &projection_schema(&input, &exprs_used)? == input.schema() {
+ if &projection_schema(&input, &exprs_used)? == input.schema()
+ && exprs_used.iter().all(is_expr_trivial)
Review Comment:
A few lines below (882) we have the same check
--
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]