{"action":"created","comment":{"url":"https://api.github.com/repos/apache/incubator-calcite/pulls/comments/35334870","id":35334870,"diff_hunk":"@@ -110,6 +115,29 @@ public RexNode getCondition() {\n     return condition;\n   }\n \n+  /**\n+   * Check if any of the operands of the filter contains a\n+   * correlation variable\n+   */\n+  public boolean hasCorrelation() {\n+    if (condition instanceof RexCall) {\n+      try {\n+        RexVisitor<Void> visitor =\n+            new RexVisitorImpl<Void>(true) {\n+              public Void visitCorrelVariable(RexCorrelVariable var) {\n+                throw new Util.FoundOne(var);","path":"core/src/main/java/org/apache/calcite/rel/core/Filter.java","position":32,"original_position":32,"commit_id":"5f0f1ade9c16b265c6b6ccda16fc61eb6211dd71","original_commit_id":"5f0f1ade9c16b265c6b6ccda16fc61eb6211dd71","user":{"login":"vlsi","id":213894,"avatar_url":"https://avatars.githubusercontent.com/u/213894?v=3","gravatar_id":"","url":"https://api.github.com/users/vlsi","html_url":"https://github.com/vlsi","followers_url":"https://api.github.com/users/vlsi/followers","following_url":"https://api.github.com/users/vlsi/following{/other_user}","gists_url":"https://api.github.com/users/vlsi/gists{/gist_id}","starred_url":"https://api.github.com/users/vlsi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlsi/subscriptions","organizations_url":"https://api.github.com/users/vlsi/orgs","repos_url":"https://api.github.com/users/vlsi/repos","events_url":"https://api.github.com/users/vlsi/events{/privacy}","received_events_url":"https://api.github.com/users/vlsi/received_events","type":"User","site_admin":false},"body":"Could you please use static exception instance, and, probably, static visitor instance?","created_at":"2015-07-23T15:34:04Z","updated_at":"2015-07-23T15:34:04Z","html_url":"https://github.com/apache/incubator-calcite/pull/110#discussion_r35334870","pull_request_url":"https://api.github.com/repos/apache/incubator-calcite/pulls/110","_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-calcite/pulls/comments/35334870"},"html":{"href":"https://github.com/apache/incubator-calcite/pull/110#discussion_r35334870"},"pull_request":{"href":"https://api.github.com/repos/apache/incubator-calcite/pulls/110"}}},"pull_request":{"url":"https://api.github.com/repos/apache/incubator-calcite/pulls/110","id":40685074,"html_url":"https://github.com/apache/incubator-calcite/pull/110","diff_url":"https://github.com/apache/incubator-calcite/pull/110.diff","patch_url":"https://github.com/apache/incubator-calcite/pull/110.patch","issue_url":"https://api.github.com/repos/apache/incubator-calcite/issues/110","number":110,"state":"open","locked":false,"title":"[CALCITE-714] Decorrelation enhancements to allow pushing filter past Correlate.","user":{"login":"amansinha100","id":6034475,"avatar_url":"https://avatars.githubusercontent.com/u/6034475?v=3","gravatar_id":"","url":"https://api.github.com/users/amansinha100","html_url":"https://github.com/amansinha100","followers_url":"https://api.github.com/users/amansinha100/followers","following_url":"https://api.github.com/users/amansinha100/following{/other_user}","gists_url":"https://api.github.com/users/amansinha100/gists{/gist_id}","starred_url":"https://api.github.com/users/amansinha100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amansinha100/subscriptions","organizations_url":"https://api.github.com/users/amansinha100/orgs","repos_url":"https://api.github.com/users/amansinha100/repos","events_url":"https://api.github.com/users/amansinha100/events{/privacy}","received_events_url":"https://api.github.com/users/amansinha100/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-23T15:31:16Z","updated_at":"2015-07-23T15:34:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7f7bd76b46c88f1d70a14fe30e21d06338b87b2b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/incubator-calcite/pulls/110/commits","review_comments_url":"https://api.github.com/repos/apache/incubator-calcite/pulls/110/comments","review_comment_url":"https://api.github.com/repos/apache/incubator-calcite/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/incubator-calcite/issues/110/comments","statuses_url":"https://api.github.com/repos/apache/incubator-calcite/statuses/5f0f1ade9c16b265c6b6ccda16fc61eb6211dd71","head":{"label":"amansinha100:correlation3","ref":"correlation3","sha":"5f0f1ade9c16b265c6b6ccda16fc61eb6211dd71","user":{"login":"amansinha100","id":6034475,"avatar_url":"https://avatars.githubusercontent.com/u/6034475?v=3","gravatar_id":"","url":"https://api.github.com/users/amansinha100","html_url":"https://github.com/amansinha100","followers_url":"https://api.github.com/users/amansinha100/followers","following_url":"https://api.github.com/users/amansinha100/following{/other_user}","gists_url":"https://api.github.com/users/amansinha100/gists{/gist_id}","starred_url":"https://api.github.com/users/amansinha100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amansinha100/subscriptions","organizations_url":"https://api.github.com/users/amansinha100/orgs","repos_url":"https://api.github.com/users/amansinha100/repos","events_url":"https://api.github.com/users/amansinha100/events{/privacy}","received_events_url":"https://api.github.com/users/amansinha100/received_events","type":"User","site_admin":false},"repo":{"id":28841308,"name":"incubator-calcite","full_name":"amansinha100/incubator-calcite","owner":{"login":"amansinha100","id":6034475,"avatar_url":"https://avatars.githubusercontent.com/u/6034475?v=3","gravatar_id":"","url":"https://api.github.com/users/amansinha100","html_url":"https://github.com/amansinha100","followers_url":"https://api.github.com/users/amansinha100/followers","following_url":"https://api.github.com/users/amansinha100/following{/other_user}","gists_url":"https://api.github.com/users/amansinha100/gists{/gist_id}","starred_url":"https://api.github.com/users/amansinha100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amansinha100/subscriptions","organizations_url":"https://api.github.com/users/amansinha100/orgs","repos_url":"https://api.github.com/users/amansinha100/repos","events_url":"https://api.github.com/users/amansinha100/events{/privacy}","received_events_url":"https://api.github.com/users/amansinha100/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/amansinha100/incubator-calcite","description":"Mirror of Apache Optiq","fork":true,"url":"https://api.github.com/repos/amansinha100/incubator-calcite","forks_url":"https://api.github.com/repos/amansinha100/incubator-calcite/forks","keys_url":"https://api.github.com/repos/amansinha100/incubator-calcite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amansinha100/incubator-calcite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amansinha100/incubator-calcite/teams","hooks_url":"https://api.github.com/repos/amansinha100/incubator-calcite/hooks","issue_events_url":"https://api.github.com/repos/amansinha100/incubator-calcite/issues/events{/number}","events_url":"https://api.github.com/repos/amansinha100/incubator-calcite/events","assignees_url":"https://api.github.com/repos/amansinha100/incubator-calcite/assignees{/user}","branches_url":"https://api.github.com/repos/amansinha100/incubator-calcite/branches{/branch}","tags_url":"https://api.github.com/repos/amansinha100/incubator-calcite/tags","blobs_url":"https://api.github.com/repos/amansinha100/incubator-calcite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amansinha100/incubator-calcite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amansinha100/incubator-calcite/git/refs{/sha}","trees_url":"https://api.github.com/repos/amansinha100/incubator-calcite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amansinha100/incubator-calcite/statuses/{sha}","languages_url":"https://api.github.com/repos/amansinha100/incubator-calcite/languages","stargazers_url":"https://api.github.com/repos/amansinha100/incubator-calcite/stargazers","contributors_url":"https://api.github.com/repos/amansinha100/incubator-calcite/contributors","subscribers_url":"https://api.github.com/repos/amansinha100/incubator-calcite/subscribers","subscription_url":"https://api.github.com/repos/amansinha100/incubator-calcite/subscription","commits_url":"https://api.github.com/repos/amansinha100/incubator-calcite/commits{/sha}","git_commits_url":"https://api.github.com/repos/amansinha100/incubator-calcite/git/commits{/sha}","comments_url":"https://api.github.com/repos/amansinha100/incubator-calcite/comments{/number}","issue_comment_url":"https://api.github.com/repos/amansinha100/incubator-calcite/issues/comments{/number}","contents_url":"https://api.github.com/repos/amansinha100/incubator-calcite/contents/{+path}","compare_url":"https://api.github.com/repos/amansinha100/incubator-calcite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amansinha100/incubator-calcite/merges","archive_url":"https://api.github.com/repos/amansinha100/incubator-calcite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amansinha100/incubator-calcite/downloads","issues_url":"https://api.github.com/repos/amansinha100/incubator-calcite/issues{/number}","pulls_url":"https://api.github.com/repos/amansinha100/incubator-calcite/pulls{/number}","milestones_url":"https://api.github.com/repos/amansinha100/incubator-calcite/milestones{/number}","notifications_url":"https://api.github.com/repos/amansinha100/incubator-calcite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amansinha100/incubator-calcite/labels{/name}","releases_url":"https://api.github.com/repos/amansinha100/incubator-calcite/releases{/id}","created_at":"2015-01-06T01:44:26Z","updated_at":"2015-01-26T03:56:52Z","pushed_at":"2015-07-23T15:28:50Z","git_url":"git://github.com/amansinha100/incubator-calcite.git","ssh_url":"git@github.com:amansinha100/incubator-calcite.git","clone_url":"https://github.com/amansinha100/incubator-calcite.git","svn_url":"https://github.com/amansinha100/incubator-calcite","homepage":null,"size":18946,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"da5d5c2dfc3dfc26fb2e6a8f0dc7ed7dfd5dbc51","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":21193524,"name":"incubator-calcite","full_name":"apache/incubator-calcite","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/incubator-calcite","description":"Mirror of Apache Optiq","fork":false,"url":"https://api.github.com/repos/apache/incubator-calcite","forks_url":"https://api.github.com/repos/apache/incubator-calcite/forks","keys_url":"https://api.github.com/repos/apache/incubator-calcite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/incubator-calcite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/incubator-calcite/teams","hooks_url":"https://api.github.com/repos/apache/incubator-calcite/hooks","issue_events_url":"https://api.github.com/repos/apache/incubator-calcite/issues/events{/number}","events_url":"https://api.github.com/repos/apache/incubator-calcite/events","assignees_url":"https://api.github.com/repos/apache/incubator-calcite/assignees{/user}","branches_url":"https://api.github.com/repos/apache/incubator-calcite/branches{/branch}","tags_url":"https://api.github.com/repos/apache/incubator-calcite/tags","blobs_url":"https://api.github.com/repos/apache/incubator-calcite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/incubator-calcite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/incubator-calcite/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/incubator-calcite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/incubator-calcite/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/incubator-calcite/languages","stargazers_url":"https://api.github.com/repos/apache/incubator-calcite/stargazers","contributors_url":"https://api.github.com/repos/apache/incubator-calcite/contributors","subscribers_url":"https://api.github.com/repos/apache/incubator-calcite/subscribers","subscription_url":"https://api.github.com/repos/apache/incubator-calcite/subscription","commits_url":"https://api.github.com/repos/apache/incubator-calcite/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/incubator-calcite/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/incubator-calcite/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/incubator-calcite/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/incubator-calcite/contents/{+path}","compare_url":"https://api.github.com/repos/apache/incubator-calcite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/incubator-calcite/merges","archive_url":"https://api.github.com/repos/apache/incubator-calcite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/incubator-calcite/downloads","issues_url":"https://api.github.com/repos/apache/incubator-calcite/issues{/number}","pulls_url":"https://api.github.com/repos/apache/incubator-calcite/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/incubator-calcite/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/incubator-calcite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/incubator-calcite/labels{/name}","releases_url":"https://api.github.com/repos/apache/incubator-calcite/releases{/id}","created_at":"2014-06-25T07:00:07Z","updated_at":"2015-07-22T20:46:52Z","pushed_at":"2015-07-23T15:31:16Z","git_url":"git://github.com/apache/incubator-calcite.git","ssh_url":"git@github.com:apache/incubator-calcite.git","clone_url":"https://github.com/apache/incubator-calcite.git","svn_url":"https://github.com/apache/incubator-calcite","homepage":null,"size":81440,"stargazers_count":103,"watchers_count":103,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":84,"mirror_url":"git://git.apache.org/incubator-optiq.git","open_issues_count":8,"forks":84,"open_issues":8,"watchers":103,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-calcite/pulls/110"},"html":{"href":"https://github.com/apache/incubator-calcite/pull/110"},"issue":{"href":"https://api.github.com/repos/apache/incubator-calcite/issues/110"},"comments":{"href":"https://api.github.com/repos/apache/incubator-calcite/issues/110/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/incubator-calcite/pulls/110/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/incubator-calcite/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/incubator-calcite/pulls/110/commits"},"statuses":{"href":"https://api.github.com/repos/apache/incubator-calcite/statuses/5f0f1ade9c16b265c6b6ccda16fc61eb6211dd71"}}}}