{"action":"created","comment":{"url":"https://api.github.com/repos/facebook/presto/pulls/comments/48216624","id":48216624,"diff_hunk":"@@ -0,0 +1,239 @@\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.operator;\n+\n+import com.facebook.presto.spi.Page;\n+import com.facebook.presto.spi.PageBuilder;\n+import com.facebook.presto.spi.type.Type;\n+import com.google.common.collect.ImmutableList;\n+\n+import java.util.BitSet;\n+import java.util.Collection;\n+import java.util.List;\n+import java.util.Set;\n+\n+import static com.facebook.presto.spi.type.BigintType.BIGINT;\n+import static com.facebook.presto.util.ImmutableCollectors.toImmutableSet;\n+import static com.google.common.base.Preconditions.checkState;\n+import static java.util.Objects.requireNonNull;\n+\n+public class GroupIdOperator\n+        implements Operator\n+{\n+    public static class GroupIdOperatorFactory\n+            implements OperatorFactory\n+    {\n+        private final int operatorId;\n+        private final List<Type> inputTypes;\n+        private final List<Type> outputTypes;\n+        private final List<List<Integer>> groupingSetChannels;\n+\n+        private boolean closed;\n+\n+        public GroupIdOperatorFactory(\n+                int operatorId,\n+                List<? extends Type> inputTypes,\n+                List<List<Integer>> groupingSetChannels)\n+        {\n+            this.operatorId = operatorId;\n+            this.groupingSetChannels = ImmutableList.copyOf(groupingSetChannels);\n+            this.inputTypes = ImmutableList.copyOf(inputTypes);\n+\n+            // add the groupId channel to the output types\n+            this.outputTypes = ImmutableList.<Type>builder().add(BIGINT).addAll(inputTypes).build();\n+        }\n+\n+        @Override\n+        public List<Type> getTypes()\n+        {\n+            return outputTypes;\n+        }\n+\n+        @Override\n+        public Operator createOperator(DriverContext driverContext)\n+        {\n+            checkState(!closed, \"Factory is already closed\");\n+            OperatorContext operatorContext = driverContext.addOperatorContext(operatorId, GroupIdOperator.class.getSimpleName());\n+\n+            Set<Integer> allGroupingColumns = groupingSetChannels.stream()\n+                    .flatMap(Collection::stream)\n+                    .collect(toImmutableSet());\n+\n+            // will have a 'true' for every channel that should be set to null for each grouping set\n+            BitSet[] groupingSetNullChannels = new BitSet[groupingSetChannels.size()];\n+            for (int i = 0; i < groupingSetChannels.size(); i++) {\n+                groupingSetNullChannels[i] = new BitSet(inputTypes.size());\n+                // first set all grouping columns to true\n+                for (Integer groupingColumn : allGroupingColumns) {\n+                    groupingSetNullChannels[i].set(groupingColumn, true);\n+                }\n+                // then set all the columns in this grouping set to false\n+                for (Integer nonNullGroupingColumn : groupingSetChannels.get(i)) {\n+                    groupingSetNullChannels[i].set(nonNullGroupingColumn, false);\n+                }\n+            }\n+\n+            return new GroupIdOperator(operatorContext, outputTypes, groupingSetNullChannels);\n+        }\n+\n+        @Override\n+        public void close()\n+        {\n+            closed = true;\n+        }\n+\n+        @Override\n+        public OperatorFactory duplicate()\n+        {\n+            return new GroupIdOperatorFactory(operatorId, inputTypes, groupingSetChannels);\n+        }\n+    }\n+\n+    private final OperatorContext operatorContext;\n+    private final List<Type> types;\n+    private GroupIdRowGenerator groupIdRowGenerator;\n+    private boolean finishing;\n+\n+    public GroupIdOperator(\n+            OperatorContext operatorContext,\n+            List<Type> inputTypes,\n+            BitSet[] groupingSetNullChannels)\n+    {\n+        this.operatorContext = requireNonNull(operatorContext, \"operatorContext is null\");\n+        this.types = requireNonNull(inputTypes, \"inputTypes is null\");\n+\n+        requireNonNull(groupingSetNullChannels, \"groupingSetChannels is null\");\n+        this.groupIdRowGenerator = new GroupIdRowGenerator(types, groupingSetNullChannels);\n+    }\n+\n+    @Override\n+    public OperatorContext getOperatorContext()\n+    {\n+        return operatorContext;\n+    }\n+\n+    @Override\n+    public List<Type> getTypes()\n+    {\n+        return types;\n+    }\n+\n+    @Override\n+    public void finish()\n+    {\n+        finishing = true;\n+    }\n+\n+    @Override\n+    public boolean isFinished()\n+    {\n+        return finishing && !groupIdRowGenerator.hasBufferedRows();\n+    }\n+\n+    @Override\n+    public boolean needsInput()\n+    {\n+        return !finishing && !groupIdRowGenerator.hasBufferedRows();\n+    }\n+\n+    @Override\n+    public void addInput(Page page)\n+    {\n+        checkState(!finishing, \"Operator is already finishing\");\n+        requireNonNull(page, \"page is null\");\n+\n+        groupIdRowGenerator.addNewPage(page);\n+    }\n+\n+    @Override\n+    public Page getOutput()\n+    {\n+        if (!groupIdRowGenerator.hasBufferedRows()) {\n+            return null;\n+        }\n+\n+        return groupIdRowGenerator.nextPage();\n+    }\n+\n+    private static class GroupIdRowGenerator\n+    {\n+        private final BitSet[] groupingSetNullChannels;\n+        private final PageBuilder pageBuilder;\n+        private final int numGroupingSets;\n+        private Page currentPage = null;\n+        private int currentPosition = 0;\n+\n+        private GroupIdRowGenerator(List<Type> types, BitSet[] groupingSetNullChannels)\n+        {\n+            this.pageBuilder = new PageBuilder(types);\n+            this.groupingSetNullChannels = groupingSetNullChannels;\n+            this.numGroupingSets = groupingSetNullChannels.length;\n+        }\n+\n+        private void addNewPage(Page page)\n+        {\n+            checkState(currentPage == null, \"currentPage must be null to add a new page\");\n+            currentPage = page;\n+            currentPosition = 0;\n+        }\n+\n+        private void process()\n+        {\n+            while (currentPosition < currentPage.getPositionCount() && !pageBuilder.isFull()) {\n+                // generate 'n' rows for every input row, where n is the number of grouping sets\n+                for (int groupingSet = 0; groupingSet < numGroupingSets; groupingSet++) {\n+                    pageBuilder.declarePosition();\n+\n+                    // write group ID\n+                    BIGINT.writeLong(pageBuilder.getBlockBuilder(0), groupingSet);\n+\n+                    for (int channel = 0; channel < currentPage.getChannelCount(); channel++) {\n+                        // if column is to be ignored or is already null, set output column to be null\n+                        if (groupingSetNullChannels[groupingSet].get(channel) || currentPage.getBlock(channel).isNull(currentPosition)) {\n+                            pageBuilder.getBlockBuilder(channel + 1).appendNull();\n+                            continue;\n+                        }\n+\n+                        // copy everything else as-is\n+                        currentPage.getBlock(channel).writePositionTo(currentPosition, pageBuilder.getBlockBuilder(channel + 1));\n+                        pageBuilder.getBlockBuilder(channel + 1).closeEntry();\n+                    }\n+                }\n+\n+                currentPosition++;\n+            }\n+\n+            // if we finished processing this page\n+            if (currentPosition == currentPage.getPositionCount()) {\n+                currentPage = null;\n+            }\n+        }\n+\n+        public boolean hasBufferedRows()\n+        {\n+            return !(currentPage == null && pageBuilder.isEmpty());","path":"presto-main/src/main/java/com/facebook/presto/operator/GroupIdOperator.java","position":225,"original_position":225,"commit_id":"b609ec195bf448c3ee4dff051b2fe8565c494d5c","original_commit_id":"b609ec195bf448c3ee4dff051b2fe8565c494d5c","user":{"login":"haozhun","id":2020503,"avatar_url":"https://avatars.githubusercontent.com/u/2020503?v=3","gravatar_id":"","url":"https://api.github.com/users/haozhun","html_url":"https://github.com/haozhun","followers_url":"https://api.github.com/users/haozhun/followers","following_url":"https://api.github.com/users/haozhun/following{/other_user}","gists_url":"https://api.github.com/users/haozhun/gists{/gist_id}","starred_url":"https://api.github.com/users/haozhun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haozhun/subscriptions","organizations_url":"https://api.github.com/users/haozhun/orgs","repos_url":"https://api.github.com/users/haozhun/repos","events_url":"https://api.github.com/users/haozhun/events{/privacy}","received_events_url":"https://api.github.com/users/haozhun/received_events","type":"User","site_admin":false},"body":"Looks like `pageBuilder` can never be non-empty","created_at":"2015-12-22T02:33:52Z","updated_at":"2015-12-22T02:33:52Z","html_url":"https://github.com/facebook/presto/pull/3963#discussion_r48216624","pull_request_url":"https://api.github.com/repos/facebook/presto/pulls/3963","_links":{"self":{"href":"https://api.github.com/repos/facebook/presto/pulls/comments/48216624"},"html":{"href":"https://github.com/facebook/presto/pull/3963#discussion_r48216624"},"pull_request":{"href":"https://api.github.com/repos/facebook/presto/pulls/3963"}}},"pull_request":{"url":"https://api.github.com/repos/facebook/presto/pulls/3963","id":50681818,"html_url":"https://github.com/facebook/presto/pull/3963","diff_url":"https://github.com/facebook/presto/pull/3963.diff","patch_url":"https://github.com/facebook/presto/pull/3963.patch","issue_url":"https://api.github.com/repos/facebook/presto/issues/3963","number":3963,"state":"open","locked":false,"title":"Add execution support for CUBE, ROLLUP and GROUPING SETS","user":{"login":"raghavsethi","id":715788,"avatar_url":"https://avatars.githubusercontent.com/u/715788?v=3","gravatar_id":"","url":"https://api.github.com/users/raghavsethi","html_url":"https://github.com/raghavsethi","followers_url":"https://api.github.com/users/raghavsethi/followers","following_url":"https://api.github.com/users/raghavsethi/following{/other_user}","gists_url":"https://api.github.com/users/raghavsethi/gists{/gist_id}","starred_url":"https://api.github.com/users/raghavsethi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raghavsethi/subscriptions","organizations_url":"https://api.github.com/users/raghavsethi/orgs","repos_url":"https://api.github.com/users/raghavsethi/repos","events_url":"https://api.github.com/users/raghavsethi/events{/privacy}","received_events_url":"https://api.github.com/users/raghavsethi/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-13T19:34:37Z","updated_at":"2015-12-22T02:33:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0dc7fa12710edfc8fdeedccd2f7d33719bb3c46c","assignee":{"login":"haozhun","id":2020503,"avatar_url":"https://avatars.githubusercontent.com/u/2020503?v=3","gravatar_id":"","url":"https://api.github.com/users/haozhun","html_url":"https://github.com/haozhun","followers_url":"https://api.github.com/users/haozhun/followers","following_url":"https://api.github.com/users/haozhun/following{/other_user}","gists_url":"https://api.github.com/users/haozhun/gists{/gist_id}","starred_url":"https://api.github.com/users/haozhun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haozhun/subscriptions","organizations_url":"https://api.github.com/users/haozhun/orgs","repos_url":"https://api.github.com/users/haozhun/repos","events_url":"https://api.github.com/users/haozhun/events{/privacy}","received_events_url":"https://api.github.com/users/haozhun/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/facebook/presto/pulls/3963/commits","review_comments_url":"https://api.github.com/repos/facebook/presto/pulls/3963/comments","review_comment_url":"https://api.github.com/repos/facebook/presto/pulls/comments{/number}","comments_url":"https://api.github.com/repos/facebook/presto/issues/3963/comments","statuses_url":"https://api.github.com/repos/facebook/presto/statuses/b609ec195bf448c3ee4dff051b2fe8565c494d5c","head":{"label":"raghavsethi:gs2_operator","ref":"gs2_operator","sha":"b609ec195bf448c3ee4dff051b2fe8565c494d5c","user":{"login":"raghavsethi","id":715788,"avatar_url":"https://avatars.githubusercontent.com/u/715788?v=3","gravatar_id":"","url":"https://api.github.com/users/raghavsethi","html_url":"https://github.com/raghavsethi","followers_url":"https://api.github.com/users/raghavsethi/followers","following_url":"https://api.github.com/users/raghavsethi/following{/other_user}","gists_url":"https://api.github.com/users/raghavsethi/gists{/gist_id}","starred_url":"https://api.github.com/users/raghavsethi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raghavsethi/subscriptions","organizations_url":"https://api.github.com/users/raghavsethi/orgs","repos_url":"https://api.github.com/users/raghavsethi/repos","events_url":"https://api.github.com/users/raghavsethi/events{/privacy}","received_events_url":"https://api.github.com/users/raghavsethi/received_events","type":"User","site_admin":false},"repo":{"id":42330619,"name":"presto","full_name":"raghavsethi/presto","owner":{"login":"raghavsethi","id":715788,"avatar_url":"https://avatars.githubusercontent.com/u/715788?v=3","gravatar_id":"","url":"https://api.github.com/users/raghavsethi","html_url":"https://github.com/raghavsethi","followers_url":"https://api.github.com/users/raghavsethi/followers","following_url":"https://api.github.com/users/raghavsethi/following{/other_user}","gists_url":"https://api.github.com/users/raghavsethi/gists{/gist_id}","starred_url":"https://api.github.com/users/raghavsethi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raghavsethi/subscriptions","organizations_url":"https://api.github.com/users/raghavsethi/orgs","repos_url":"https://api.github.com/users/raghavsethi/repos","events_url":"https://api.github.com/users/raghavsethi/events{/privacy}","received_events_url":"https://api.github.com/users/raghavsethi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/raghavsethi/presto","description":"Distributed SQL query engine for running interactive analytic queries against big data sources.","fork":true,"url":"https://api.github.com/repos/raghavsethi/presto","forks_url":"https://api.github.com/repos/raghavsethi/presto/forks","keys_url":"https://api.github.com/repos/raghavsethi/presto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/raghavsethi/presto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/raghavsethi/presto/teams","hooks_url":"https://api.github.com/repos/raghavsethi/presto/hooks","issue_events_url":"https://api.github.com/repos/raghavsethi/presto/issues/events{/number}","events_url":"https://api.github.com/repos/raghavsethi/presto/events","assignees_url":"https://api.github.com/repos/raghavsethi/presto/assignees{/user}","branches_url":"https://api.github.com/repos/raghavsethi/presto/branches{/branch}","tags_url":"https://api.github.com/repos/raghavsethi/presto/tags","blobs_url":"https://api.github.com/repos/raghavsethi/presto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/raghavsethi/presto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/raghavsethi/presto/git/refs{/sha}","trees_url":"https://api.github.com/repos/raghavsethi/presto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/raghavsethi/presto/statuses/{sha}","languages_url":"https://api.github.com/repos/raghavsethi/presto/languages","stargazers_url":"https://api.github.com/repos/raghavsethi/presto/stargazers","contributors_url":"https://api.github.com/repos/raghavsethi/presto/contributors","subscribers_url":"https://api.github.com/repos/raghavsethi/presto/subscribers","subscription_url":"https://api.github.com/repos/raghavsethi/presto/subscription","commits_url":"https://api.github.com/repos/raghavsethi/presto/commits{/sha}","git_commits_url":"https://api.github.com/repos/raghavsethi/presto/git/commits{/sha}","comments_url":"https://api.github.com/repos/raghavsethi/presto/comments{/number}","issue_comment_url":"https://api.github.com/repos/raghavsethi/presto/issues/comments{/number}","contents_url":"https://api.github.com/repos/raghavsethi/presto/contents/{+path}","compare_url":"https://api.github.com/repos/raghavsethi/presto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/raghavsethi/presto/merges","archive_url":"https://api.github.com/repos/raghavsethi/presto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/raghavsethi/presto/downloads","issues_url":"https://api.github.com/repos/raghavsethi/presto/issues{/number}","pulls_url":"https://api.github.com/repos/raghavsethi/presto/pulls{/number}","milestones_url":"https://api.github.com/repos/raghavsethi/presto/milestones{/number}","notifications_url":"https://api.github.com/repos/raghavsethi/presto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/raghavsethi/presto/labels{/name}","releases_url":"https://api.github.com/repos/raghavsethi/presto/releases{/id}","created_at":"2015-09-11T20:28:31Z","updated_at":"2015-09-11T20:28:39Z","pushed_at":"2015-12-17T01:26:34Z","git_url":"git://github.com/raghavsethi/presto.git","ssh_url":"git@github.com:raghavsethi/presto.git","clone_url":"https://github.com/raghavsethi/presto.git","svn_url":"https://github.com/raghavsethi/presto","homepage":"https://prestodb.io","size":52757,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"8abfad15187059766922f76e22cc7109a2c6e546","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-12-22T02:29:48Z","pushed_at":"2015-12-22T01:07:57Z","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":"https://prestodb.io","size":105949,"stargazers_count":4243,"watchers_count":4243,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1153,"mirror_url":null,"open_issues_count":430,"forks":1153,"open_issues":430,"watchers":4243,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/facebook/presto/pulls/3963"},"html":{"href":"https://github.com/facebook/presto/pull/3963"},"issue":{"href":"https://api.github.com/repos/facebook/presto/issues/3963"},"comments":{"href":"https://api.github.com/repos/facebook/presto/issues/3963/comments"},"review_comments":{"href":"https://api.github.com/repos/facebook/presto/pulls/3963/comments"},"review_comment":{"href":"https://api.github.com/repos/facebook/presto/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/facebook/presto/pulls/3963/commits"},"statuses":{"href":"https://api.github.com/repos/facebook/presto/statuses/b609ec195bf448c3ee4dff051b2fe8565c494d5c"}}}}