viirya commented on code in PR #9223:
URL: https://github.com/apache/arrow-datafusion/pull/9223#discussion_r1528939357
##########
datafusion/core/src/physical_optimizer/pruning.rs:
##########
@@ -1320,14 +1457,56 @@ fn build_statistics_expr(
);
}
};
+ let statistics_expr = wrap_case_expr(statistics_expr, expr_builder)?;
Review Comment:
Hmm, then I think the rules order could be changed? It sounds not making
sense to rewrite predicates based on statistics before the statistics are ready.
--
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]