{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/8718","labels_url":"https://api.github.com/repos/apache/spark/issues/8718/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/8718/comments","events_url":"https://api.github.com/repos/apache/spark/issues/8718/events","html_url":"https://github.com/apache/spark/pull/8718","id":105989361,"number":8718,"title":"[SPARK-9182][SQL] Cast filters are not passed through to datasources","user":{"login":"HyukjinKwon","id":6477701,"avatar_url":"https://avatars.githubusercontent.com/u/6477701?v=3","gravatar_id":"","url":"https://api.github.com/users/HyukjinKwon","html_url":"https://github.com/HyukjinKwon","followers_url":"https://api.github.com/users/HyukjinKwon/followers","following_url":"https://api.github.com/users/HyukjinKwon/following{/other_user}","gists_url":"https://api.github.com/users/HyukjinKwon/gists{/gist_id}","starred_url":"https://api.github.com/users/HyukjinKwon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HyukjinKwon/subscriptions","organizations_url":"https://api.github.com/users/HyukjinKwon/orgs","repos_url":"https://api.github.com/users/HyukjinKwon/repos","events_url":"https://api.github.com/users/HyukjinKwon/events{/privacy}","received_events_url":"https://api.github.com/users/HyukjinKwon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-09-11T11:04:17Z","updated_at":"2015-09-16T05:34:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/8718","html_url":"https://github.com/apache/spark/pull/8718","diff_url":"https://github.com/apache/spark/pull/8718.diff","patch_url":"https://github.com/apache/spark/pull/8718.patch"},"body":"As mentioned in https://issues.apache.org/jira/browse/SPARK-9182,\r\n\r\nSome casts filters are not passing to datasources  (The original PR was reverted because of some downcasting issues).\r\n\r\nSo, for this PR, rather than checking the range or constant-folding, I just made the actual cast to check if down-casting actually happens.\r\n\r\nTest codes and some codes are basically similar with the previous ones (@yjshen).\r\n\r\n The codes are a bit messy and might need to be cleaned up.\r\n\r\n@liancheng Could you please review this PR?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/140630773","html_url":"https://github.com/apache/spark/pull/8718#issuecomment-140630773","issue_url":"https://api.github.com/repos/apache/spark/issues/8718","id":140630773,"user":{"login":"SparkQA","id":8108735,"avatar_url":"https://avatars.githubusercontent.com/u/8108735?v=3","gravatar_id":"","url":"https://api.github.com/users/SparkQA","html_url":"https://github.com/SparkQA","followers_url":"https://api.github.com/users/SparkQA/followers","following_url":"https://api.github.com/users/SparkQA/following{/other_user}","gists_url":"https://api.github.com/users/SparkQA/gists{/gist_id}","starred_url":"https://api.github.com/users/SparkQA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SparkQA/subscriptions","organizations_url":"https://api.github.com/users/SparkQA/orgs","repos_url":"https://api.github.com/users/SparkQA/repos","events_url":"https://api.github.com/users/SparkQA/events{/privacy}","received_events_url":"https://api.github.com/users/SparkQA/received_events","type":"User","site_admin":false},"created_at":"2015-09-16T05:34:59Z","updated_at":"2015-09-16T05:34:59Z","body":"  [Test build #42523 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/42523/console) for   PR 8718 at commit [`0ecdb53`](https://github.com/apache/spark/commit/0ecdb5355409397830efeaeaa357119538447166).\n * This patch **passes all tests**.\n * This patch merges cleanly.\n * This patch adds the following public classes _(experimental)_:\n  * `case class TaskCommitDenied(`\n  * `abstract class LocalNode(conf: SQLConf) extends QueryPlan[LocalNode] with Logging `\n"}}