{"action":"created","comment":{"url":"https://api.github.com/repos/prestodb/presto/pulls/comments/219027430","pull_request_review_id":157098640,"id":219027430,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxOTAyNzQzMA==","diff_hunk":"@@ -0,0 +1,93 @@\n+/*\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *     http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+package com.facebook.presto.spi;\n+\n+import com.fasterxml.jackson.annotation.JsonCreator;\n+import com.fasterxml.jackson.annotation.JsonProperty;\n+\n+import java.util.Objects;\n+\n+import static java.util.Objects.requireNonNull;\n+\n+public class WarningCode\n+{\n+    private final int code;\n+    private final String name;\n+    private final WarningType warningType;\n+\n+    @JsonCreator\n+    public WarningCode(\n+            @JsonProperty(\"code\") int code,\n+            @JsonProperty(\"name\") String name,\n+            @JsonProperty(\"warningType\") WarningType warningType)\n+    {\n+        if (code < 0) {\n+            throw new IllegalArgumentException(\"code is negative\");\n+        }\n+        this.code = code;\n+        this.name = requireNonNull(name, \"name is null\");\n+        this.warningType = requireNonNull(warningType, \"warningType is null\");\n+    }\n+\n+    @JsonProperty\n+    public int getCode()\n+    {\n+        return code;\n+    }\n+\n+    @JsonProperty\n+    public String getName()\n+    {\n+        return name;\n+    }\n+\n+    @JsonProperty\n+    public WarningType getWarningType()\n+    {\n+        return warningType;\n+    }\n+\n+    @Override\n+    public String toString()\n+    {\n+        return warningType.toString() + \".\" + name + \":\" + code;\n+    }\n+\n+    @Override\n+    public boolean equals(Object obj)\n+    {\n+        if (this == obj) {\n+            return true;\n+        }\n+        if (obj == null || getClass() != obj.getClass()) {\n+            return false;\n+        }\n+\n+        WarningCode that = (WarningCode) obj;\n+        return this.code == that.code && Objects.equals(this.name, that.name) && this.warningType == that.warningType;\n+    }\n+\n+    @Override\n+    public int hashCode()\n+    {\n+        return Objects.hash(code);\n+    }\n+\n+    public enum WarningType\n+    {\n+        CONNECTION,","path":"presto-spi/src/main/java/com/facebook/presto/spi/WarningCode.java","position":89,"original_position":89,"commit_id":"e7f9b346b493cac91c493c3c4cd8c74938e180a4","original_commit_id":"8fae575fec9c148d46332292e1b2b6944bbce1f6","user":{"login":"elonazoulay","id":1587350,"node_id":"MDQ6VXNlcjE1ODczNTA=","avatar_url":"https://avatars0.githubusercontent.com/u/1587350?v=4","gravatar_id":"","url":"https://api.github.com/users/elonazoulay","html_url":"https://github.com/elonazoulay","followers_url":"https://api.github.com/users/elonazoulay/followers","following_url":"https://api.github.com/users/elonazoulay/following{/other_user}","gists_url":"https://api.github.com/users/elonazoulay/gists{/gist_id}","starred_url":"https://api.github.com/users/elonazoulay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elonazoulay/subscriptions","organizations_url":"https://api.github.com/users/elonazoulay/orgs","repos_url":"https://api.github.com/users/elonazoulay/repos","events_url":"https://api.github.com/users/elonazoulay/events{/privacy}","received_events_url":"https://api.github.com/users/elonazoulay/received_events","type":"User","site_admin":false},"body":"Removed.","created_at":"2018-09-20T03:51:38Z","updated_at":"2018-09-20T03:51:39Z","html_url":"https://github.com/prestodb/presto/pull/10148#discussion_r219027430","pull_request_url":"https://api.github.com/repos/prestodb/presto/pulls/10148","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/prestodb/presto/pulls/comments/219027430"},"html":{"href":"https://github.com/prestodb/presto/pull/10148#discussion_r219027430"},"pull_request":{"href":"https://api.github.com/repos/prestodb/presto/pulls/10148"}},"in_reply_to_id":218246275},"pull_request":{"url":"https://api.github.com/repos/prestodb/presto/pulls/10148","id":174476326,"node_id":"MDExOlB1bGxSZXF1ZXN0MTc0NDc2MzI2","html_url":"https://github.com/prestodb/presto/pull/10148","diff_url":"https://github.com/prestodb/presto/pull/10148.diff","patch_url":"https://github.com/prestodb/presto/pull/10148.patch","issue_url":"https://api.github.com/repos/prestodb/presto/issues/10148","number":10148,"state":"open","locked":false,"title":"Warnings System","user":{"login":"elonazoulay","id":1587350,"node_id":"MDQ6VXNlcjE1ODczNTA=","avatar_url":"https://avatars0.githubusercontent.com/u/1587350?v=4","gravatar_id":"","url":"https://api.github.com/users/elonazoulay","html_url":"https://github.com/elonazoulay","followers_url":"https://api.github.com/users/elonazoulay/followers","following_url":"https://api.github.com/users/elonazoulay/following{/other_user}","gists_url":"https://api.github.com/users/elonazoulay/gists{/gist_id}","starred_url":"https://api.github.com/users/elonazoulay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elonazoulay/subscriptions","organizations_url":"https://api.github.com/users/elonazoulay/orgs","repos_url":"https://api.github.com/users/elonazoulay/repos","events_url":"https://api.github.com/users/elonazoulay/events{/privacy}","received_events_url":"https://api.github.com/users/elonazoulay/received_events","type":"User","site_admin":false},"body":"Updated #8611 according to the notes in the review.\r\nAlso looked at notes from #7852.\r\n\r\nAdded warnings to QueryCompletedEvent and renamed/moved classes according to comments in the review.\r\nAdd query id to WarningCollector to prefix messages.","created_at":"2018-03-12T19:50:30Z","updated_at":"2018-09-20T03:51:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1ca9c5a77d477ad93df5af1f1fe78af5b322fded","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":196992743,"node_id":"MDU6TGFiZWwxOTY5OTI3NDM=","url":"https://api.github.com/repos/prestodb/presto/labels/CLA%20Signed","name":"CLA Signed","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/prestodb/presto/pulls/10148/commits","review_comments_url":"https://api.github.com/repos/prestodb/presto/pulls/10148/comments","review_comment_url":"https://api.github.com/repos/prestodb/presto/pulls/comments{/number}","comments_url":"https://api.github.com/repos/prestodb/presto/issues/10148/comments","statuses_url":"https://api.github.com/repos/prestodb/presto/statuses/e7f9b346b493cac91c493c3c4cd8c74938e180a4","head":{"label":"elonazoulay:warnings","ref":"warnings","sha":"e7f9b346b493cac91c493c3c4cd8c74938e180a4","user":{"login":"elonazoulay","id":1587350,"node_id":"MDQ6VXNlcjE1ODczNTA=","avatar_url":"https://avatars0.githubusercontent.com/u/1587350?v=4","gravatar_id":"","url":"https://api.github.com/users/elonazoulay","html_url":"https://github.com/elonazoulay","followers_url":"https://api.github.com/users/elonazoulay/followers","following_url":"https://api.github.com/users/elonazoulay/following{/other_user}","gists_url":"https://api.github.com/users/elonazoulay/gists{/gist_id}","starred_url":"https://api.github.com/users/elonazoulay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elonazoulay/subscriptions","organizations_url":"https://api.github.com/users/elonazoulay/orgs","repos_url":"https://api.github.com/users/elonazoulay/repos","events_url":"https://api.github.com/users/elonazoulay/events{/privacy}","received_events_url":"https://api.github.com/users/elonazoulay/received_events","type":"User","site_admin":false},"repo":{"id":55449678,"node_id":"MDEwOlJlcG9zaXRvcnk1NTQ0OTY3OA==","name":"presto","full_name":"elonazoulay/presto","private":false,"owner":{"login":"elonazoulay","id":1587350,"node_id":"MDQ6VXNlcjE1ODczNTA=","avatar_url":"https://avatars0.githubusercontent.com/u/1587350?v=4","gravatar_id":"","url":"https://api.github.com/users/elonazoulay","html_url":"https://github.com/elonazoulay","followers_url":"https://api.github.com/users/elonazoulay/followers","following_url":"https://api.github.com/users/elonazoulay/following{/other_user}","gists_url":"https://api.github.com/users/elonazoulay/gists{/gist_id}","starred_url":"https://api.github.com/users/elonazoulay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elonazoulay/subscriptions","organizations_url":"https://api.github.com/users/elonazoulay/orgs","repos_url":"https://api.github.com/users/elonazoulay/repos","events_url":"https://api.github.com/users/elonazoulay/events{/privacy}","received_events_url":"https://api.github.com/users/elonazoulay/received_events","type":"User","site_admin":false},"html_url":"https://github.com/elonazoulay/presto","description":"Distributed SQL query engine for big data","fork":true,"url":"https://api.github.com/repos/elonazoulay/presto","forks_url":"https://api.github.com/repos/elonazoulay/presto/forks","keys_url":"https://api.github.com/repos/elonazoulay/presto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elonazoulay/presto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elonazoulay/presto/teams","hooks_url":"https://api.github.com/repos/elonazoulay/presto/hooks","issue_events_url":"https://api.github.com/repos/elonazoulay/presto/issues/events{/number}","events_url":"https://api.github.com/repos/elonazoulay/presto/events","assignees_url":"https://api.github.com/repos/elonazoulay/presto/assignees{/user}","branches_url":"https://api.github.com/repos/elonazoulay/presto/branches{/branch}","tags_url":"https://api.github.com/repos/elonazoulay/presto/tags","blobs_url":"https://api.github.com/repos/elonazoulay/presto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elonazoulay/presto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elonazoulay/presto/git/refs{/sha}","trees_url":"https://api.github.com/repos/elonazoulay/presto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elonazoulay/presto/statuses/{sha}","languages_url":"https://api.github.com/repos/elonazoulay/presto/languages","stargazers_url":"https://api.github.com/repos/elonazoulay/presto/stargazers","contributors_url":"https://api.github.com/repos/elonazoulay/presto/contributors","subscribers_url":"https://api.github.com/repos/elonazoulay/presto/subscribers","subscription_url":"https://api.github.com/repos/elonazoulay/presto/subscription","commits_url":"https://api.github.com/repos/elonazoulay/presto/commits{/sha}","git_commits_url":"https://api.github.com/repos/elonazoulay/presto/git/commits{/sha}","comments_url":"https://api.github.com/repos/elonazoulay/presto/comments{/number}","issue_comment_url":"https://api.github.com/repos/elonazoulay/presto/issues/comments{/number}","contents_url":"https://api.github.com/repos/elonazoulay/presto/contents/{+path}","compare_url":"https://api.github.com/repos/elonazoulay/presto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elonazoulay/presto/merges","archive_url":"https://api.github.com/repos/elonazoulay/presto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elonazoulay/presto/downloads","issues_url":"https://api.github.com/repos/elonazoulay/presto/issues{/number}","pulls_url":"https://api.github.com/repos/elonazoulay/presto/pulls{/number}","milestones_url":"https://api.github.com/repos/elonazoulay/presto/milestones{/number}","notifications_url":"https://api.github.com/repos/elonazoulay/presto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elonazoulay/presto/labels{/name}","releases_url":"https://api.github.com/repos/elonazoulay/presto/releases{/id}","deployments_url":"https://api.github.com/repos/elonazoulay/presto/deployments","created_at":"2016-04-04T22:23:20Z","updated_at":"2017-03-03T08:56:58Z","pushed_at":"2018-09-07T19:16:18Z","git_url":"git://github.com/elonazoulay/presto.git","ssh_url":"git@github.com:elonazoulay/presto.git","clone_url":"https://github.com/elonazoulay/presto.git","svn_url":"https://github.com/elonazoulay/presto","homepage":"https://prestodb.io","size":98985,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":17,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":17,"watchers":0,"default_branch":"master"}},"base":{"label":"prestodb:master","ref":"master","sha":"c4244f77609f4e5a1c95d4b8d4513118fd884deb","user":{"login":"prestodb","id":6882181,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4ODIxODE=","avatar_url":"https://avatars0.githubusercontent.com/u/6882181?v=4","gravatar_id":"","url":"https://api.github.com/users/prestodb","html_url":"https://github.com/prestodb","followers_url":"https://api.github.com/users/prestodb/followers","following_url":"https://api.github.com/users/prestodb/following{/other_user}","gists_url":"https://api.github.com/users/prestodb/gists{/gist_id}","starred_url":"https://api.github.com/users/prestodb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prestodb/subscriptions","organizations_url":"https://api.github.com/users/prestodb/orgs","repos_url":"https://api.github.com/users/prestodb/repos","events_url":"https://api.github.com/users/prestodb/events{/privacy}","received_events_url":"https://api.github.com/users/prestodb/received_events","type":"Organization","site_admin":false},"repo":{"id":5349565,"node_id":"MDEwOlJlcG9zaXRvcnk1MzQ5NTY1","name":"presto","full_name":"prestodb/presto","private":false,"owner":{"login":"prestodb","id":6882181,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4ODIxODE=","avatar_url":"https://avatars0.githubusercontent.com/u/6882181?v=4","gravatar_id":"","url":"https://api.github.com/users/prestodb","html_url":"https://github.com/prestodb","followers_url":"https://api.github.com/users/prestodb/followers","following_url":"https://api.github.com/users/prestodb/following{/other_user}","gists_url":"https://api.github.com/users/prestodb/gists{/gist_id}","starred_url":"https://api.github.com/users/prestodb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prestodb/subscriptions","organizations_url":"https://api.github.com/users/prestodb/orgs","repos_url":"https://api.github.com/users/prestodb/repos","events_url":"https://api.github.com/users/prestodb/events{/privacy}","received_events_url":"https://api.github.com/users/prestodb/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/prestodb/presto","description":"Distributed SQL query engine for big data","fork":false,"url":"https://api.github.com/repos/prestodb/presto","forks_url":"https://api.github.com/repos/prestodb/presto/forks","keys_url":"https://api.github.com/repos/prestodb/presto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prestodb/presto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prestodb/presto/teams","hooks_url":"https://api.github.com/repos/prestodb/presto/hooks","issue_events_url":"https://api.github.com/repos/prestodb/presto/issues/events{/number}","events_url":"https://api.github.com/repos/prestodb/presto/events","assignees_url":"https://api.github.com/repos/prestodb/presto/assignees{/user}","branches_url":"https://api.github.com/repos/prestodb/presto/branches{/branch}","tags_url":"https://api.github.com/repos/prestodb/presto/tags","blobs_url":"https://api.github.com/repos/prestodb/presto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prestodb/presto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prestodb/presto/git/refs{/sha}","trees_url":"https://api.github.com/repos/prestodb/presto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prestodb/presto/statuses/{sha}","languages_url":"https://api.github.com/repos/prestodb/presto/languages","stargazers_url":"https://api.github.com/repos/prestodb/presto/stargazers","contributors_url":"https://api.github.com/repos/prestodb/presto/contributors","subscribers_url":"https://api.github.com/repos/prestodb/presto/subscribers","subscription_url":"https://api.github.com/repos/prestodb/presto/subscription","commits_url":"https://api.github.com/repos/prestodb/presto/commits{/sha}","git_commits_url":"https://api.github.com/repos/prestodb/presto/git/commits{/sha}","comments_url":"https://api.github.com/repos/prestodb/presto/comments{/number}","issue_comment_url":"https://api.github.com/repos/prestodb/presto/issues/comments{/number}","contents_url":"https://api.github.com/repos/prestodb/presto/contents/{+path}","compare_url":"https://api.github.com/repos/prestodb/presto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prestodb/presto/merges","archive_url":"https://api.github.com/repos/prestodb/presto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prestodb/presto/downloads","issues_url":"https://api.github.com/repos/prestodb/presto/issues{/number}","pulls_url":"https://api.github.com/repos/prestodb/presto/pulls{/number}","milestones_url":"https://api.github.com/repos/prestodb/presto/milestones{/number}","notifications_url":"https://api.github.com/repos/prestodb/presto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prestodb/presto/labels{/name}","releases_url":"https://api.github.com/repos/prestodb/presto/releases{/id}","deployments_url":"https://api.github.com/repos/prestodb/presto/deployments","created_at":"2012-08-09T01:03:37Z","updated_at":"2018-09-19T23:40:06Z","pushed_at":"2018-09-20T02:29:23Z","git_url":"git://github.com/prestodb/presto.git","ssh_url":"git@github.com:prestodb/presto.git","clone_url":"https://github.com/prestodb/presto.git","svn_url":"https://github.com/prestodb/presto","homepage":"https://prestodb.io","size":98183,"stargazers_count":8101,"watchers_count":8101,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2741,"mirror_url":null,"archived":false,"open_issues_count":1401,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":2741,"open_issues":1401,"watchers":8101,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/prestodb/presto/pulls/10148"},"html":{"href":"https://github.com/prestodb/presto/pull/10148"},"issue":{"href":"https://api.github.com/repos/prestodb/presto/issues/10148"},"comments":{"href":"https://api.github.com/repos/prestodb/presto/issues/10148/comments"},"review_comments":{"href":"https://api.github.com/repos/prestodb/presto/pulls/10148/comments"},"review_comment":{"href":"https://api.github.com/repos/prestodb/presto/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/prestodb/presto/pulls/10148/commits"},"statuses":{"href":"https://api.github.com/repos/prestodb/presto/statuses/e7f9b346b493cac91c493c3c4cd8c74938e180a4"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"elonazoulay"}}