GitHub user viirya opened a pull request:
https://github.com/apache/spark/pull/14912
[SPARK-17357][SQL] Simplified predicates should be pushed down through
operators
## What changes were proposed in this pull request?
In `Optimizer`, Filter operator will go through the rules
`PushDownPredicate`, `CombineFilters` and `BooleanSimplification`.
Under this rule order, it is possibly that some predicates that should be
able to push down, can't be pushed down through operators.
Because `Filter` will not push down through another `Filter` node and will
wait for combination in the rule `CombineFilters` later. After the `Filter`s
are combined, `BooleanSimplification` will simplify conditions in the combined
`Filter` and make some predicates, which are able to push down, become unable
to push down.
We have some options here. This patch uses the simplest one. It just adds
another round to do `PushDownPredicate` after `CombineFilters`.
## How was this patch tested?
Jenkins tests.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/viirya/spark-1 simplified-predicate-pushdown
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/14912.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #14912
----
commit 9e1c3159c0250bb921a83f923d5c9ebea1ffca42
Author: Liang-Chi Hsieh <[email protected]>
Date: 2016-09-01T06:44:30Z
Simplified predicates should be pushdown.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]