{"action":"created","comment":{"url":"https://api.github.com/repos/facebook/presto/pulls/comments/22430009","id":22430009,"diff_hunk":"@@ -89,6 +93,7 @@ public BasicQueryInfo(QueryInfo queryInfo)\n         this(queryInfo.getQueryId(),\n                 queryInfo.getSession(),\n                 queryInfo.getState(),\n+                queryInfo.getErrorCode() != null ? StandardErrorCode.toErrorType( queryInfo.getErrorCode().getCode()) : null,","path":"presto-main/src/main/java/com/facebook/presto/server/BasicQueryInfo.java","position":43,"original_position":43,"commit_id":"f8090b84fcd5da38a870639ef92b17a3e2444662","original_commit_id":"f8090b84fcd5da38a870639ef92b17a3e2444662","user":{"login":"electrum","id":9230,"avatar_url":"https://avatars.githubusercontent.com/u/9230?v=3","gravatar_id":"","url":"https://api.github.com/users/electrum","html_url":"https://github.com/electrum","followers_url":"https://api.github.com/users/electrum/followers","following_url":"https://api.github.com/users/electrum/following{/other_user}","gists_url":"https://api.github.com/users/electrum/gists{/gist_id}","starred_url":"https://api.github.com/users/electrum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/electrum/subscriptions","organizations_url":"https://api.github.com/users/electrum/orgs","repos_url":"https://api.github.com/users/electrum/repos","events_url":"https://api.github.com/users/electrum/events{/privacy}","received_events_url":"https://api.github.com/users/electrum/received_events","type":"User","site_admin":false},"body":"Move this to `QueryInfo` and add a `private static` helper `getErrorType(@Nullable ErrorCode code)`:\r\n\r\n```java\r\ngetErrorType(queryInfo.getErrorCode())","created_at":"2015-01-03T06:44:37Z","updated_at":"2015-01-03T06:44:37Z","html_url":"https://github.com/facebook/presto/pull/2177#discussion_r22430009","pull_request_url":"https://api.github.com/repos/facebook/presto/pulls/2177","_links":{"self":{"href":"https://api.github.com/repos/facebook/presto/pulls/comments/22430009"},"html":{"href":"https://github.com/facebook/presto/pull/2177#discussion_r22430009"},"pull_request":{"href":"https://api.github.com/repos/facebook/presto/pulls/2177"}}},"pull_request":{"url":"https://api.github.com/repos/facebook/presto/pulls/2177","id":26777029,"html_url":"https://github.com/facebook/presto/pull/2177","diff_url":"https://github.com/facebook/presto/pull/2177.diff","patch_url":"https://github.com/facebook/presto/pull/2177.patch","issue_url":"https://api.github.com/repos/facebook/presto/issues/2177","number":2177,"state":"open","locked":false,"title":"Adding error codes to Presto UI","user":{"login":"angoenka","id":38219,"avatar_url":"https://avatars.githubusercontent.com/u/38219?v=3","gravatar_id":"","url":"https://api.github.com/users/angoenka","html_url":"https://github.com/angoenka","followers_url":"https://api.github.com/users/angoenka/followers","following_url":"https://api.github.com/users/angoenka/following{/other_user}","gists_url":"https://api.github.com/users/angoenka/gists{/gist_id}","starred_url":"https://api.github.com/users/angoenka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angoenka/subscriptions","organizations_url":"https://api.github.com/users/angoenka/orgs","repos_url":"https://api.github.com/users/angoenka/repos","events_url":"https://api.github.com/users/angoenka/events{/privacy}","received_events_url":"https://api.github.com/users/angoenka/received_events","type":"User","site_admin":false},"body":"Resolves #1166 ","created_at":"2015-01-03T00:49:29Z","updated_at":"2015-01-03T06:44:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6ec868e7e05dba48166481fe21206034242d3dc2","assignee":{"login":"cberner","id":842688,"avatar_url":"https://avatars.githubusercontent.com/u/842688?v=3","gravatar_id":"","url":"https://api.github.com/users/cberner","html_url":"https://github.com/cberner","followers_url":"https://api.github.com/users/cberner/followers","following_url":"https://api.github.com/users/cberner/following{/other_user}","gists_url":"https://api.github.com/users/cberner/gists{/gist_id}","starred_url":"https://api.github.com/users/cberner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cberner/subscriptions","organizations_url":"https://api.github.com/users/cberner/orgs","repos_url":"https://api.github.com/users/cberner/repos","events_url":"https://api.github.com/users/cberner/events{/privacy}","received_events_url":"https://api.github.com/users/cberner/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/facebook/presto/pulls/2177/commits","review_comments_url":"https://api.github.com/repos/facebook/presto/pulls/2177/comments","review_comment_url":"https://api.github.com/repos/facebook/presto/pulls/comments/{number}","comments_url":"https://api.github.com/repos/facebook/presto/issues/2177/comments","statuses_url":"https://api.github.com/repos/facebook/presto/statuses/f8090b84fcd5da38a870639ef92b17a3e2444662","head":{"label":"angoenka:t5486787","ref":"t5486787","sha":"f8090b84fcd5da38a870639ef92b17a3e2444662","user":{"login":"angoenka","id":38219,"avatar_url":"https://avatars.githubusercontent.com/u/38219?v=3","gravatar_id":"","url":"https://api.github.com/users/angoenka","html_url":"https://github.com/angoenka","followers_url":"https://api.github.com/users/angoenka/followers","following_url":"https://api.github.com/users/angoenka/following{/other_user}","gists_url":"https://api.github.com/users/angoenka/gists{/gist_id}","starred_url":"https://api.github.com/users/angoenka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angoenka/subscriptions","organizations_url":"https://api.github.com/users/angoenka/orgs","repos_url":"https://api.github.com/users/angoenka/repos","events_url":"https://api.github.com/users/angoenka/events{/privacy}","received_events_url":"https://api.github.com/users/angoenka/received_events","type":"User","site_admin":false},"repo":{"id":28730372,"name":"presto","full_name":"angoenka/presto","owner":{"login":"angoenka","id":38219,"avatar_url":"https://avatars.githubusercontent.com/u/38219?v=3","gravatar_id":"","url":"https://api.github.com/users/angoenka","html_url":"https://github.com/angoenka","followers_url":"https://api.github.com/users/angoenka/followers","following_url":"https://api.github.com/users/angoenka/following{/other_user}","gists_url":"https://api.github.com/users/angoenka/gists{/gist_id}","starred_url":"https://api.github.com/users/angoenka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angoenka/subscriptions","organizations_url":"https://api.github.com/users/angoenka/orgs","repos_url":"https://api.github.com/users/angoenka/repos","events_url":"https://api.github.com/users/angoenka/events{/privacy}","received_events_url":"https://api.github.com/users/angoenka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/angoenka/presto","description":"Distributed SQL query engine for running interactive analytic queries against big data sources.","fork":true,"url":"https://api.github.com/repos/angoenka/presto","forks_url":"https://api.github.com/repos/angoenka/presto/forks","keys_url":"https://api.github.com/repos/angoenka/presto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/angoenka/presto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/angoenka/presto/teams","hooks_url":"https://api.github.com/repos/angoenka/presto/hooks","issue_events_url":"https://api.github.com/repos/angoenka/presto/issues/events{/number}","events_url":"https://api.github.com/repos/angoenka/presto/events","assignees_url":"https://api.github.com/repos/angoenka/presto/assignees{/user}","branches_url":"https://api.github.com/repos/angoenka/presto/branches{/branch}","tags_url":"https://api.github.com/repos/angoenka/presto/tags","blobs_url":"https://api.github.com/repos/angoenka/presto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/angoenka/presto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/angoenka/presto/git/refs{/sha}","trees_url":"https://api.github.com/repos/angoenka/presto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/angoenka/presto/statuses/{sha}","languages_url":"https://api.github.com/repos/angoenka/presto/languages","stargazers_url":"https://api.github.com/repos/angoenka/presto/stargazers","contributors_url":"https://api.github.com/repos/angoenka/presto/contributors","subscribers_url":"https://api.github.com/repos/angoenka/presto/subscribers","subscription_url":"https://api.github.com/repos/angoenka/presto/subscription","commits_url":"https://api.github.com/repos/angoenka/presto/commits{/sha}","git_commits_url":"https://api.github.com/repos/angoenka/presto/git/commits{/sha}","comments_url":"https://api.github.com/repos/angoenka/presto/comments{/number}","issue_comment_url":"https://api.github.com/repos/angoenka/presto/issues/comments/{number}","contents_url":"https://api.github.com/repos/angoenka/presto/contents/{+path}","compare_url":"https://api.github.com/repos/angoenka/presto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/angoenka/presto/merges","archive_url":"https://api.github.com/repos/angoenka/presto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/angoenka/presto/downloads","issues_url":"https://api.github.com/repos/angoenka/presto/issues{/number}","pulls_url":"https://api.github.com/repos/angoenka/presto/pulls{/number}","milestones_url":"https://api.github.com/repos/angoenka/presto/milestones{/number}","notifications_url":"https://api.github.com/repos/angoenka/presto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/angoenka/presto/labels{/name}","releases_url":"https://api.github.com/repos/angoenka/presto/releases{/id}","created_at":"2015-01-03T00:17:57Z","updated_at":"2015-01-03T00:18:03Z","pushed_at":"2015-01-03T00:54:36Z","git_url":"git://github.com/angoenka/presto.git","ssh_url":"git@github.com:angoenka/presto.git","clone_url":"https://github.com/angoenka/presto.git","svn_url":"https://github.com/angoenka/presto","homepage":"http://prestodb.io/","size":64466,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"facebook:master","ref":"master","sha":"ce4ce3998e5f2545e54cf3d7a2a656d6e260c362","user":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"repo":{"id":5349565,"name":"presto","full_name":"facebook/presto","owner":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/facebook/presto","description":"Distributed SQL query engine for running interactive analytic queries against big data sources.","fork":false,"url":"https://api.github.com/repos/facebook/presto","forks_url":"https://api.github.com/repos/facebook/presto/forks","keys_url":"https://api.github.com/repos/facebook/presto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/facebook/presto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/facebook/presto/teams","hooks_url":"https://api.github.com/repos/facebook/presto/hooks","issue_events_url":"https://api.github.com/repos/facebook/presto/issues/events{/number}","events_url":"https://api.github.com/repos/facebook/presto/events","assignees_url":"https://api.github.com/repos/facebook/presto/assignees{/user}","branches_url":"https://api.github.com/repos/facebook/presto/branches{/branch}","tags_url":"https://api.github.com/repos/facebook/presto/tags","blobs_url":"https://api.github.com/repos/facebook/presto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/facebook/presto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/facebook/presto/git/refs{/sha}","trees_url":"https://api.github.com/repos/facebook/presto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/facebook/presto/statuses/{sha}","languages_url":"https://api.github.com/repos/facebook/presto/languages","stargazers_url":"https://api.github.com/repos/facebook/presto/stargazers","contributors_url":"https://api.github.com/repos/facebook/presto/contributors","subscribers_url":"https://api.github.com/repos/facebook/presto/subscribers","subscription_url":"https://api.github.com/repos/facebook/presto/subscription","commits_url":"https://api.github.com/repos/facebook/presto/commits{/sha}","git_commits_url":"https://api.github.com/repos/facebook/presto/git/commits{/sha}","comments_url":"https://api.github.com/repos/facebook/presto/comments{/number}","issue_comment_url":"https://api.github.com/repos/facebook/presto/issues/comments/{number}","contents_url":"https://api.github.com/repos/facebook/presto/contents/{+path}","compare_url":"https://api.github.com/repos/facebook/presto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/facebook/presto/merges","archive_url":"https://api.github.com/repos/facebook/presto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/facebook/presto/downloads","issues_url":"https://api.github.com/repos/facebook/presto/issues{/number}","pulls_url":"https://api.github.com/repos/facebook/presto/pulls{/number}","milestones_url":"https://api.github.com/repos/facebook/presto/milestones{/number}","notifications_url":"https://api.github.com/repos/facebook/presto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/facebook/presto/labels{/name}","releases_url":"https://api.github.com/repos/facebook/presto/releases{/id}","created_at":"2012-08-09T01:03:37Z","updated_at":"2015-01-03T05:45:45Z","pushed_at":"2015-01-02T21:09:16Z","git_url":"git://github.com/facebook/presto.git","ssh_url":"git@github.com:facebook/presto.git","clone_url":"https://github.com/facebook/presto.git","svn_url":"https://github.com/facebook/presto","homepage":"http://prestodb.io/","size":64466,"stargazers_count":2877,"watchers_count":2877,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":624,"mirror_url":null,"open_issues_count":201,"forks":624,"open_issues":201,"watchers":2877,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/facebook/presto/pulls/2177"},"html":{"href":"https://github.com/facebook/presto/pull/2177"},"issue":{"href":"https://api.github.com/repos/facebook/presto/issues/2177"},"comments":{"href":"https://api.github.com/repos/facebook/presto/issues/2177/comments"},"review_comments":{"href":"https://api.github.com/repos/facebook/presto/pulls/2177/comments"},"review_comment":{"href":"https://api.github.com/repos/facebook/presto/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/facebook/presto/pulls/2177/commits"},"statuses":{"href":"https://api.github.com/repos/facebook/presto/statuses/f8090b84fcd5da38a870639ef92b17a3e2444662"}}}}