{"action":"created","issue":{"url":"https://api.github.com/repos/prestodb/presto/issues/4977","repository_url":"https://api.github.com/repos/prestodb/presto","labels_url":"https://api.github.com/repos/prestodb/presto/issues/4977/labels{/name}","comments_url":"https://api.github.com/repos/prestodb/presto/issues/4977/comments","events_url":"https://api.github.com/repos/prestodb/presto/issues/4977/events","html_url":"https://github.com/prestodb/presto/pull/4977","id":147032978,"number":4977,"title":"Fix using qualified table name with views","user":{"login":"jingw","id":2019426,"avatar_url":"https://avatars.githubusercontent.com/u/2019426?v=3","gravatar_id":"","url":"https://api.github.com/users/jingw","html_url":"https://github.com/jingw","followers_url":"https://api.github.com/users/jingw/followers","following_url":"https://api.github.com/users/jingw/following{/other_user}","gists_url":"https://api.github.com/users/jingw/gists{/gist_id}","starred_url":"https://api.github.com/users/jingw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jingw/subscriptions","organizations_url":"https://api.github.com/users/jingw/orgs","repos_url":"https://api.github.com/users/jingw/repos","events_url":"https://api.github.com/users/jingw/events{/privacy}","received_events_url":"https://api.github.com/users/jingw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/prestodb/presto/labels/changes-requested","name":"changes-requested","color":"fbca04"},{"url":"https://api.github.com/repos/prestodb/presto/labels/CLA%20Signed","name":"CLA Signed","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-04-08T20:36:32Z","updated_at":"2016-04-12T19:42:19Z","closed_at":"2016-04-12T19:42:19Z","pull_request":{"url":"https://api.github.com/repos/prestodb/presto/pulls/4977","html_url":"https://github.com/prestodb/presto/pull/4977","diff_url":"https://github.com/prestodb/presto/pull/4977.diff","patch_url":"https://github.com/prestodb/presto/pull/4977.patch"},"body":"Without this patch, I can't qualify column references from views.\r\n\r\n```\r\ncreate table tbl (a bigint);\r\ncreate view tbl_view as select * from tbl;\r\n-- fails\r\nselect tbl_view.a from tbl_view;\r\n-- works\r\nselect a from tbl_view;\r\n```\r\n\r\nWith this patch, both work."},"comment":{"url":"https://api.github.com/repos/prestodb/presto/issues/comments/209073129","html_url":"https://github.com/prestodb/presto/pull/4977#issuecomment-209073129","issue_url":"https://api.github.com/repos/prestodb/presto/issues/4977","id":209073129,"user":{"login":"martint","id":14387,"avatar_url":"https://avatars.githubusercontent.com/u/14387?v=3","gravatar_id":"","url":"https://api.github.com/users/martint","html_url":"https://github.com/martint","followers_url":"https://api.github.com/users/martint/followers","following_url":"https://api.github.com/users/martint/following{/other_user}","gists_url":"https://api.github.com/users/martint/gists{/gist_id}","starred_url":"https://api.github.com/users/martint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martint/subscriptions","organizations_url":"https://api.github.com/users/martint/orgs","repos_url":"https://api.github.com/users/martint/repos","events_url":"https://api.github.com/users/martint/events{/privacy}","received_events_url":"https://api.github.com/users/martint/received_events","type":"User","site_admin":false},"created_at":"2016-04-12T19:42:19Z","updated_at":"2016-04-12T19:42:19Z","body":"Merged, thanks!"}}