GitHub user cloud-fan opened a pull request:
https://github.com/apache/spark/pull/13846
[SPARK-16134][SQL] optimizer rules for typed filter
## What changes were proposed in this pull request?
This PR adds 3 optimizer rules for typed filter:
1. push typed filter down through `SerializeFromObject` and eliminate the
deserialization in filter condition.
2. pull typed filter up through `SerializeFromObject` and eliminate the
deserialization in filter condition.
3. combine adjacent typed filters and share the deserialized object among
all the condition expressions.
This PR also adds `TypedFilter` logical plan, to separate it from normal
filter, so that the concept is more clear and it's easier to write optimizer
rules.
## How was this patch tested?
`TypedFilterOptimizationSuite`
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/cloud-fan/spark filter
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/13846.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 #13846
----
commit c1dac587b6628acbbca0852d3d77870897f60884
Author: Wenchen Fan <[email protected]>
Date: 2016-06-22T14:15:54Z
optimizer rules for typed filter
----
---
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]