GitHub user gatorsmile opened 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 be eliminated by optimizer, 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 <gatorsm...@gmail.com> Date: 2017-03-28T00:47:23Z fix. commit d770dbbe383d6455682abfd2fc4cc81a1ffef969 Author: Xiao Li <gatorsm...@gmail.com> Date: 2017-03-28T00:51:23Z Merge remote-tracking branch 'upstream/master' into constantFilterEstimation ---- --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org