GitHub user gatorsmile reopened a pull request:
https://github.com/apache/spark/pull/17446
[SPARK-17075][SQL][followup] Add Estimation of Constant Literal
### What changes were proposed in this pull request?
`FalseLiteral` and `TrueLiteral` should have been eliminated by optimizer
rule `BooleanSimplification`, but null literals might be added by optimizer
rule `NullPropagation`. For safety, our filter estimation should handle all the
eligible literal cases.
### How was this patch tested?
Added the test cases.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/gatorsmile/spark constantFilterEstimation
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/17446.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 #17446
----
commit 8a0e8b0f290826d6453739a4039665e9e9806471
Author: Xiao Li <[email protected]>
Date: 2017-03-28T00:47:23Z
fix.
commit d770dbbe383d6455682abfd2fc4cc81a1ffef969
Author: Xiao Li <[email protected]>
Date: 2017-03-28T00:51:23Z
Merge remote-tracking branch 'upstream/master' into constantFilterEstimation
commit 1775ca73e9b2918fdc212fbe517f2e743f048368
Author: Xiao Li <[email protected]>
Date: 2017-03-28T01:38:14Z
revert
----
---
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]