{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/15763","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/15763/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/15763/comments","events_url":"https://api.github.com/repos/apache/spark/issues/15763/events","html_url":"https://github.com/apache/spark/pull/15763","id":187251696,"number":15763,"title":"[SPARK-17348][SQL] Incorrect results from subquery transformation","user":{"login":"nsyca","id":18035343,"avatar_url":"https://avatars.githubusercontent.com/u/18035343?v=3","gravatar_id":"","url":"https://api.github.com/users/nsyca","html_url":"https://github.com/nsyca","followers_url":"https://api.github.com/users/nsyca/followers","following_url":"https://api.github.com/users/nsyca/following{/other_user}","gists_url":"https://api.github.com/users/nsyca/gists{/gist_id}","starred_url":"https://api.github.com/users/nsyca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nsyca/subscriptions","organizations_url":"https://api.github.com/users/nsyca/orgs","repos_url":"https://api.github.com/users/nsyca/repos","events_url":"https://api.github.com/users/nsyca/events{/privacy}","received_events_url":"https://api.github.com/users/nsyca/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-11-04T04:30:43Z","updated_at":"2016-11-04T17:34:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/15763","html_url":"https://github.com/apache/spark/pull/15763","diff_url":"https://github.com/apache/spark/pull/15763.diff","patch_url":"https://github.com/apache/spark/pull/15763.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nReturn an Analysis exception when there is a correlated non-equality predicate in a subquery and the correlated column from the outer reference is not from the immediate parent operator of the subquery. This PR prevents incorrect results from subquery transformation in such case.\r\n\r\nTest cases, both positive and negative tests, are added.\r\n\r\n## How was this patch tested?\r\n\r\nsql/test, catalyst/test, hive/test, and scenarios that will produce incorrect results without this PR and product correct results when subquery transformation does happen.\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/258497544","html_url":"https://github.com/apache/spark/pull/15763#issuecomment-258497544","issue_url":"https://api.github.com/repos/apache/spark/issues/15763","id":258497544,"user":{"login":"hvanhovell","id":9616802,"avatar_url":"https://avatars.githubusercontent.com/u/9616802?v=3","gravatar_id":"","url":"https://api.github.com/users/hvanhovell","html_url":"https://github.com/hvanhovell","followers_url":"https://api.github.com/users/hvanhovell/followers","following_url":"https://api.github.com/users/hvanhovell/following{/other_user}","gists_url":"https://api.github.com/users/hvanhovell/gists{/gist_id}","starred_url":"https://api.github.com/users/hvanhovell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hvanhovell/subscriptions","organizations_url":"https://api.github.com/users/hvanhovell/orgs","repos_url":"https://api.github.com/users/hvanhovell/repos","events_url":"https://api.github.com/users/hvanhovell/events{/privacy}","received_events_url":"https://api.github.com/users/hvanhovell/received_events","type":"User","site_admin":false},"created_at":"2016-11-04T17:34:02Z","updated_at":"2016-11-04T17:34:02Z","body":"retest this please"}}
{"actor":{"display_login":"hvanhovell"}}