GitHub user HyukjinKwon opened a pull request: https://github.com/apache/spark/pull/8718
[SPARK-9182][SQL] Cast filters are not passed through to datasources As mentioned in https://issues.apache.org/jira/browse/SPARK-9182, Some casts filters are not passing to datasources (The original PR was reverted because of some downcasting issues). So, for this PR, rather than checking the range or constant-folding, I just made the actual cast to check if down-casting actually happens. Test codes and some codes are basically similar with the previous ones (@yjshen). The codes are a bit messy and might need to be cleaned up. @liancheng Could you please review this PR? You can merge this pull request into a Git repository by running: $ git pull https://github.com/HyukjinKwon/spark master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/8718.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 #8718 ---- commit 2acbeb36c3d1a9d96277102788ef4fae95aa799d Author: hyukjinkwon <gurwls...@gmail.com> Date: 2015-09-11T10:50:10Z [SPARK-9182][SQL] Cast filters are not passed through to datasources commit b3f02b29b02ae255f2cee71912e12e4f34d3935a Author: hyukjinkwon <gurwls...@gmail.com> Date: 2015-09-11T10:52:49Z [SPARK-9182][SQL] Remove a newline commit 53bcddb4fb204e5a5b67596a8e5b55d030220fd4 Author: hyukjinkwon <gurwls...@gmail.com> Date: 2015-09-11T10:55:36Z [SPARK-9182][SQL] Update indentation ---- --- 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