alex-natzka opened a new pull request, #3861:
URL: https://github.com/apache/arrow-datafusion/pull/3861
# Which issue does this PR close?
Closes #3635.
# Rationale for this change
If `CommonSubexprEliminate` identifies a common sub-expression used in a
`Filter` node, it will add a projection before a filter which adds a new column
with the common sub-expression. If the `FilterPushdown` is applied afterwards,
the filter can be pushed past the additional projection - now the additional
projection is completely redundant and, instead of optimizing performance,
actually worsens it.
# What changes are included in this PR?
- Move `CommonSubexprEliminate` after `FilterPushdown` in the default
optimization rules.
# Are there any user-facing changes?
No API changes, but optimizing a `LogicalPlan` will in some cases produce a
different (hopefully better) result.
--
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]