{"action":"created","comment":{"url":"https://api.github.com/repos/apache/metamodel/pulls/comments/27453436","id":27453436,"diff_hunk":"@@ -160,6 +164,14 @@ public SelectItem findSelectItem(String expression) throws MultipleSelectItemsPa\n                 return new SelectItem(subQuerySelectItem, fromItem);\n             }\n         }\n+        \n+        //if the expression is alias of some select item defined return clone of that select item\n+        List<SelectItem> allSelectItems = MetaModelHelper.getAllSelectItems(_query);","path":"core/src/main/java/org/apache/metamodel/query/parser/SelectItemParser.java","position":25,"original_position":25,"commit_id":"c1ac2ff7af56c2ab59e1e7a183b405fb087f76ef","original_commit_id":"c1ac2ff7af56c2ab59e1e7a183b405fb087f76ef","user":{"login":"ashish-m-yh","id":787428,"avatar_url":"https://avatars.githubusercontent.com/u/787428?v=3","gravatar_id":"","url":"https://api.github.com/users/ashish-m-yh","html_url":"https://github.com/ashish-m-yh","followers_url":"https://api.github.com/users/ashish-m-yh/followers","following_url":"https://api.github.com/users/ashish-m-yh/following{/other_user}","gists_url":"https://api.github.com/users/ashish-m-yh/gists{/gist_id}","starred_url":"https://api.github.com/users/ashish-m-yh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashish-m-yh/subscriptions","organizations_url":"https://api.github.com/users/ashish-m-yh/orgs","repos_url":"https://api.github.com/users/ashish-m-yh/repos","events_url":"https://api.github.com/users/ashish-m-yh/events{/privacy}","received_events_url":"https://api.github.com/users/ashish-m-yh/received_events","type":"User","site_admin":false},"body":"Isn't a SELECT in WHERE clause possible in case of sub-select?","created_at":"2015-03-31T05:08:23Z","updated_at":"2015-03-31T05:08:23Z","html_url":"https://github.com/apache/metamodel/pull/13#discussion_r27453436","pull_request_url":"https://api.github.com/repos/apache/metamodel/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/apache/metamodel/pulls/comments/27453436"},"html":{"href":"https://github.com/apache/metamodel/pull/13#discussion_r27453436"},"pull_request":{"href":"https://api.github.com/repos/apache/metamodel/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/apache/metamodel/pulls/13","id":32241363,"html_url":"https://github.com/apache/metamodel/pull/13","diff_url":"https://github.com/apache/metamodel/pull/13.diff","patch_url":"https://github.com/apache/metamodel/pull/13.patch","issue_url":"https://api.github.com/repos/apache/metamodel/issues/13","number":13,"state":"open","locked":false,"title":"Fix for METAMODEL-128","user":{"login":"narahari92","id":6235216,"avatar_url":"https://avatars.githubusercontent.com/u/6235216?v=3","gravatar_id":"","url":"https://api.github.com/users/narahari92","html_url":"https://github.com/narahari92","followers_url":"https://api.github.com/users/narahari92/followers","following_url":"https://api.github.com/users/narahari92/following{/other_user}","gists_url":"https://api.github.com/users/narahari92/gists{/gist_id}","starred_url":"https://api.github.com/users/narahari92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/narahari92/subscriptions","organizations_url":"https://api.github.com/users/narahari92/orgs","repos_url":"https://api.github.com/users/narahari92/repos","events_url":"https://api.github.com/users/narahari92/events{/privacy}","received_events_url":"https://api.github.com/users/narahari92/received_events","type":"User","site_admin":false},"body":"Please review the code fix for the mentioned defect. One test case gives false failure because we are comparing query's string form when an alias of item is used. I have modified that.","created_at":"2015-03-30T16:08:00Z","updated_at":"2015-03-31T05:08:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5ee7d5f58f621e87675bb96947d37adc1945e641","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/metamodel/pulls/13/commits","review_comments_url":"https://api.github.com/repos/apache/metamodel/pulls/13/comments","review_comment_url":"https://api.github.com/repos/apache/metamodel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/metamodel/issues/13/comments","statuses_url":"https://api.github.com/repos/apache/metamodel/statuses/c1ac2ff7af56c2ab59e1e7a183b405fb087f76ef","head":{"label":"narahari92:master","ref":"master","sha":"c1ac2ff7af56c2ab59e1e7a183b405fb087f76ef","user":{"login":"narahari92","id":6235216,"avatar_url":"https://avatars.githubusercontent.com/u/6235216?v=3","gravatar_id":"","url":"https://api.github.com/users/narahari92","html_url":"https://github.com/narahari92","followers_url":"https://api.github.com/users/narahari92/followers","following_url":"https://api.github.com/users/narahari92/following{/other_user}","gists_url":"https://api.github.com/users/narahari92/gists{/gist_id}","starred_url":"https://api.github.com/users/narahari92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/narahari92/subscriptions","organizations_url":"https://api.github.com/users/narahari92/orgs","repos_url":"https://api.github.com/users/narahari92/repos","events_url":"https://api.github.com/users/narahari92/events{/privacy}","received_events_url":"https://api.github.com/users/narahari92/received_events","type":"User","site_admin":false},"repo":{"id":32644150,"name":"metamodel","full_name":"narahari92/metamodel","owner":{"login":"narahari92","id":6235216,"avatar_url":"https://avatars.githubusercontent.com/u/6235216?v=3","gravatar_id":"","url":"https://api.github.com/users/narahari92","html_url":"https://github.com/narahari92","followers_url":"https://api.github.com/users/narahari92/followers","following_url":"https://api.github.com/users/narahari92/following{/other_user}","gists_url":"https://api.github.com/users/narahari92/gists{/gist_id}","starred_url":"https://api.github.com/users/narahari92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/narahari92/subscriptions","organizations_url":"https://api.github.com/users/narahari92/orgs","repos_url":"https://api.github.com/users/narahari92/repos","events_url":"https://api.github.com/users/narahari92/events{/privacy}","received_events_url":"https://api.github.com/users/narahari92/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/narahari92/metamodel","description":"Mirror of Apache Metamodel","fork":true,"url":"https://api.github.com/repos/narahari92/metamodel","forks_url":"https://api.github.com/repos/narahari92/metamodel/forks","keys_url":"https://api.github.com/repos/narahari92/metamodel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/narahari92/metamodel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/narahari92/metamodel/teams","hooks_url":"https://api.github.com/repos/narahari92/metamodel/hooks","issue_events_url":"https://api.github.com/repos/narahari92/metamodel/issues/events{/number}","events_url":"https://api.github.com/repos/narahari92/metamodel/events","assignees_url":"https://api.github.com/repos/narahari92/metamodel/assignees{/user}","branches_url":"https://api.github.com/repos/narahari92/metamodel/branches{/branch}","tags_url":"https://api.github.com/repos/narahari92/metamodel/tags","blobs_url":"https://api.github.com/repos/narahari92/metamodel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/narahari92/metamodel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/narahari92/metamodel/git/refs{/sha}","trees_url":"https://api.github.com/repos/narahari92/metamodel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/narahari92/metamodel/statuses/{sha}","languages_url":"https://api.github.com/repos/narahari92/metamodel/languages","stargazers_url":"https://api.github.com/repos/narahari92/metamodel/stargazers","contributors_url":"https://api.github.com/repos/narahari92/metamodel/contributors","subscribers_url":"https://api.github.com/repos/narahari92/metamodel/subscribers","subscription_url":"https://api.github.com/repos/narahari92/metamodel/subscription","commits_url":"https://api.github.com/repos/narahari92/metamodel/commits{/sha}","git_commits_url":"https://api.github.com/repos/narahari92/metamodel/git/commits{/sha}","comments_url":"https://api.github.com/repos/narahari92/metamodel/comments{/number}","issue_comment_url":"https://api.github.com/repos/narahari92/metamodel/issues/comments{/number}","contents_url":"https://api.github.com/repos/narahari92/metamodel/contents/{+path}","compare_url":"https://api.github.com/repos/narahari92/metamodel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/narahari92/metamodel/merges","archive_url":"https://api.github.com/repos/narahari92/metamodel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/narahari92/metamodel/downloads","issues_url":"https://api.github.com/repos/narahari92/metamodel/issues{/number}","pulls_url":"https://api.github.com/repos/narahari92/metamodel/pulls{/number}","milestones_url":"https://api.github.com/repos/narahari92/metamodel/milestones{/number}","notifications_url":"https://api.github.com/repos/narahari92/metamodel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/narahari92/metamodel/labels{/name}","releases_url":"https://api.github.com/repos/narahari92/metamodel/releases{/id}","created_at":"2015-03-21T18:19:03Z","updated_at":"2015-03-30T17:39:36Z","pushed_at":"2015-03-30T17:39:36Z","git_url":"git://github.com/narahari92/metamodel.git","ssh_url":"git@github.com:narahari92/metamodel.git","clone_url":"https://github.com/narahari92/metamodel.git","svn_url":"https://github.com/narahari92/metamodel","homepage":null,"size":3326,"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":"75e7698a1f5a78aee021e11c2b00cf171a0cc1a0","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":11943595,"name":"metamodel","full_name":"apache/metamodel","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/metamodel","description":"Mirror of Apache Metamodel","fork":false,"url":"https://api.github.com/repos/apache/metamodel","forks_url":"https://api.github.com/repos/apache/metamodel/forks","keys_url":"https://api.github.com/repos/apache/metamodel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/metamodel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/metamodel/teams","hooks_url":"https://api.github.com/repos/apache/metamodel/hooks","issue_events_url":"https://api.github.com/repos/apache/metamodel/issues/events{/number}","events_url":"https://api.github.com/repos/apache/metamodel/events","assignees_url":"https://api.github.com/repos/apache/metamodel/assignees{/user}","branches_url":"https://api.github.com/repos/apache/metamodel/branches{/branch}","tags_url":"https://api.github.com/repos/apache/metamodel/tags","blobs_url":"https://api.github.com/repos/apache/metamodel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/metamodel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/metamodel/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/metamodel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/metamodel/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/metamodel/languages","stargazers_url":"https://api.github.com/repos/apache/metamodel/stargazers","contributors_url":"https://api.github.com/repos/apache/metamodel/contributors","subscribers_url":"https://api.github.com/repos/apache/metamodel/subscribers","subscription_url":"https://api.github.com/repos/apache/metamodel/subscription","commits_url":"https://api.github.com/repos/apache/metamodel/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/metamodel/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/metamodel/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/metamodel/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/metamodel/contents/{+path}","compare_url":"https://api.github.com/repos/apache/metamodel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/metamodel/merges","archive_url":"https://api.github.com/repos/apache/metamodel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/metamodel/downloads","issues_url":"https://api.github.com/repos/apache/metamodel/issues{/number}","pulls_url":"https://api.github.com/repos/apache/metamodel/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/metamodel/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/metamodel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/metamodel/labels{/name}","releases_url":"https://api.github.com/repos/apache/metamodel/releases{/id}","created_at":"2013-08-07T07:00:14Z","updated_at":"2015-03-30T10:49:25Z","pushed_at":"2015-03-30T17:39:37Z","git_url":"git://github.com/apache/metamodel.git","ssh_url":"git@github.com:apache/metamodel.git","clone_url":"https://github.com/apache/metamodel.git","svn_url":"https://github.com/apache/metamodel","homepage":null,"size":4388,"stargazers_count":15,"watchers_count":15,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":15,"mirror_url":"git://git.apache.org/incubator-metamodel.git","open_issues_count":1,"forks":15,"open_issues":1,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/metamodel/pulls/13"},"html":{"href":"https://github.com/apache/metamodel/pull/13"},"issue":{"href":"https://api.github.com/repos/apache/metamodel/issues/13"},"comments":{"href":"https://api.github.com/repos/apache/metamodel/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/metamodel/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/metamodel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/metamodel/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/apache/metamodel/statuses/c1ac2ff7af56c2ab59e1e7a183b405fb087f76ef"}}}}