{"action":"created","comment":{"url":"https://api.github.com/repos/prestodb/presto/pulls/comments/77714014","id":77714014,"diff_hunk":"@@ -0,0 +1,419 @@\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+\n+package com.facebook.presto.sql.planner.optimizations;\n+\n+import com.facebook.presto.Session;\n+import com.facebook.presto.metadata.FunctionRegistry;\n+import com.facebook.presto.metadata.Metadata;\n+import com.facebook.presto.metadata.Signature;\n+import com.facebook.presto.spi.type.BigintType;\n+import com.facebook.presto.spi.type.BooleanType;\n+import com.facebook.presto.spi.type.Type;\n+import com.facebook.presto.spi.type.TypeSignature;\n+import com.facebook.presto.sql.ExpressionUtils;\n+import com.facebook.presto.sql.planner.DependencyExtractor;\n+import com.facebook.presto.sql.planner.PlanNodeIdAllocator;\n+import com.facebook.presto.sql.planner.Symbol;\n+import com.facebook.presto.sql.planner.SymbolAllocator;\n+import com.facebook.presto.sql.planner.plan.AggregationNode;\n+import com.facebook.presto.sql.planner.plan.ApplyNode;\n+import com.facebook.presto.sql.planner.plan.AssignUniqueId;\n+import com.facebook.presto.sql.planner.plan.EnforceSingleRowNode;\n+import com.facebook.presto.sql.planner.plan.FilterNode;\n+import com.facebook.presto.sql.planner.plan.JoinNode;\n+import com.facebook.presto.sql.planner.plan.LimitNode;\n+import com.facebook.presto.sql.planner.plan.PlanNode;\n+import com.facebook.presto.sql.planner.plan.ProjectNode;\n+import com.facebook.presto.sql.planner.plan.SimplePlanRewriter;\n+import com.facebook.presto.sql.tree.DefaultTraversalVisitor;\n+import com.facebook.presto.sql.tree.Expression;\n+import com.facebook.presto.sql.tree.FunctionCall;\n+import com.facebook.presto.sql.tree.LogicalBinaryExpression;\n+import com.facebook.presto.sql.tree.QualifiedName;\n+import com.google.common.collect.ImmutableList;\n+import com.google.common.collect.ImmutableMap;\n+\n+import java.util.Collection;\n+import java.util.List;\n+import java.util.Map;\n+import java.util.Optional;\n+import java.util.Set;\n+import java.util.concurrent.atomic.AtomicBoolean;\n+\n+import static com.facebook.presto.sql.planner.optimizations.PlanNodeSearcher.searchFrom;\n+import static com.facebook.presto.sql.planner.optimizations.Predicates.isInstanceOfAny;\n+import static com.facebook.presto.sql.planner.plan.SimplePlanRewriter.rewriteWith;\n+import static com.facebook.presto.sql.tree.BooleanLiteral.TRUE_LITERAL;\n+import static com.facebook.presto.util.ImmutableCollectors.toImmutableList;\n+import static com.facebook.presto.util.ImmutableCollectors.toImmutableMap;\n+import static java.util.Objects.requireNonNull;\n+\n+/**\n+ * Scalar aggregation is aggregation with GROUP BY 1 (or empty GROUP BY). It always returns single row in Presto.\n+ * <p>\n+ * This optimizer can rewrite correlated scalar aggregation subquery to left outer join in a way described here:\n+ * https://docs.google.com/document/d/18HN7peS2eR8lZsErqcmnoWyMEPb6p4OQeidH1JP_EkA/edit#heading=h.hb6ihepq7q74\n+ * <p>\n+ * From:\n+ * - Apply (with correlation list: [C])\n+ * - (input) plan which produces symbols: [A, B, C]\n+ * - (subquery) Aggregation(GROUP BY 1; functions: [sum(F),...]\n+ * - Filter(D = C AND E > 5)\n+ * - plan which produces symbols: [D, E, F]\n+ * to:\n+ * - Aggregation(GROUP BY A, B, C, U; functions: [sum(F),...]\n+ * - Join(LEFT_OUTER, D = C)\n+ * - AssignUniqueId(adds symbol U)\n+ * - (input) plan which produces symbols: [A, B, C]\n+ * - Filter(E > 5)\n+ * - plan which produces symbols: [D, E, F]\n+ * <p>\n+ * Note only conjunction predicates in FilterNode are supported\n+ */\n+public class TransformCorrelatedScalarAggregationToJoin\n+        implements PlanOptimizer\n+{\n+    private final Metadata metadata;\n+\n+    public TransformCorrelatedScalarAggregationToJoin(Metadata metadata)\n+    {\n+        this.metadata = requireNonNull(metadata, \"metadata is null\");\n+    }\n+\n+    @Override\n+    public PlanNode optimize(\n+            PlanNode plan,\n+            Session session,\n+            Map<Symbol, Type> types,\n+            SymbolAllocator symbolAllocator,\n+            PlanNodeIdAllocator idAllocator)\n+    {\n+        return rewriteWith(new Rewriter(idAllocator, symbolAllocator, metadata), plan, null);\n+    }\n+\n+    private static class Rewriter\n+            extends SimplePlanRewriter<PlanNode>\n+    {\n+        private final PlanNodeIdAllocator idAllocator;\n+        private final SymbolAllocator symbolAllocator;\n+        private final Metadata metadata;\n+\n+        public Rewriter(PlanNodeIdAllocator idAllocator, SymbolAllocator symbolAllocator, Metadata metadata)\n+        {\n+            this.idAllocator = requireNonNull(idAllocator, \"idAllocator is null\");\n+            this.symbolAllocator = requireNonNull(symbolAllocator, \"symbolAllocator is null\");\n+            this.metadata = requireNonNull(metadata, \"metadata is null\");\n+        }\n+\n+        @Override\n+        public PlanNode visitApply(ApplyNode node, RewriteContext<PlanNode> context)\n+        {\n+            ApplyNode rewrittenNode = (ApplyNode) context.defaultRewrite(node, context.get());\n+            if (!rewrittenNode.getCorrelation().isEmpty()) {\n+                Optional<AggregationNode> scalarAggregation = searchFrom(rewrittenNode.getSubquery())\n+                        .where(AggregationNode.class::isInstance)\n+                        .skipOnlyWhen(isInstanceOfAny(ProjectNode.class, EnforceSingleRowNode.class))\n+                        .findFirst();\n+                if (scalarAggregation.isPresent() && scalarAggregation.get().getGroupBy().isEmpty()) {\n+                    return rewriteScalarAggregation(rewrittenNode, scalarAggregation.get());\n+                }\n+            }\n+            return rewrittenNode;\n+        }\n+\n+        private PlanNode rewriteScalarAggregation(ApplyNode applyNode, AggregationNode scalarAggregation)\n+        {\n+            List<Symbol> correlation = applyNode.getCorrelation();\n+            Optional<RewrittenScalarAggregationSource> rewrittenAggregationSource = rewriteScalarAggregationSource(scalarAggregation.getSource(), correlation);\n+            if (!rewrittenAggregationSource.isPresent()) {\n+                return applyNode;\n+            }\n+\n+            Symbol nonNull = symbolAllocator.newSymbol(\"non_null\", BooleanType.BOOLEAN);","path":"presto-main/src/main/java/com/facebook/presto/sql/planner/optimizations/TransformCorrelatedScalarAggregationToJoin.java","position":144,"original_position":144,"commit_id":"ef8d70c1a9fd98bc25560246e02351fabe745f37","original_commit_id":"3fe000bc819e47609cff8c5f45d7fb882567482b","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},"body":"What's this? It's not in the example you added to the class javadocs.","created_at":"2016-09-06T20:38:43Z","updated_at":"2016-09-06T20:38:43Z","html_url":"https://github.com/prestodb/presto/pull/6035#discussion_r77714014","pull_request_url":"https://api.github.com/repos/prestodb/presto/pulls/6035","_links":{"self":{"href":"https://api.github.com/repos/prestodb/presto/pulls/comments/77714014"},"html":{"href":"https://github.com/prestodb/presto/pull/6035#discussion_r77714014"},"pull_request":{"href":"https://api.github.com/repos/prestodb/presto/pulls/6035"}}},"pull_request":{"url":"https://api.github.com/repos/prestodb/presto/pulls/6035","id":83933653,"html_url":"https://github.com/prestodb/presto/pull/6035","diff_url":"https://github.com/prestodb/presto/pull/6035.diff","patch_url":"https://github.com/prestodb/presto/pull/6035.patch","issue_url":"https://api.github.com/repos/prestodb/presto/issues/6035","number":6035,"state":"open","locked":false,"title":"Support correlated scalar subqueries (v5)","user":{"login":"kokosing","id":7569403,"avatar_url":"https://avatars.githubusercontent.com/u/7569403?v=3","gravatar_id":"","url":"https://api.github.com/users/kokosing","html_url":"https://github.com/kokosing","followers_url":"https://api.github.com/users/kokosing/followers","following_url":"https://api.github.com/users/kokosing/following{/other_user}","gists_url":"https://api.github.com/users/kokosing/gists{/gist_id}","starred_url":"https://api.github.com/users/kokosing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kokosing/subscriptions","organizations_url":"https://api.github.com/users/kokosing/orgs","repos_url":"https://api.github.com/users/kokosing/repos","events_url":"https://api.github.com/users/kokosing/events{/privacy}","received_events_url":"https://api.github.com/users/kokosing/received_events","type":"User","site_admin":false},"body":"Support correlated count scalar subqueries\r\n\r\nA scalar subquery is a simple query which aggregates all the rows into a\r\nsingle group (empty GROUP BY clause). For example:\r\n\r\nSELECT min(a) FROM t WHERE b > 0\r\nThis commit add support for correlated count scalar subqueries which\r\nhave WHERE cluase of conjunction of equality comparison. For example:\r\n\r\nSELECT (SELECT min(a) FROM t1(a,c) WHERE b = 0 AND c = d) FROM t2(b,d)\r\nLogically such query is rewritten into left outer join where correlation\r\nused in eqality comparisons (from WHERE cluase) are used as join\r\ncondition.","created_at":"2016-09-04T20:50:43Z","updated_at":"2016-09-06T20:38:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ee6cb6c3e0db1ca6814d1266a0fd8e1a03ebbed6","assignee":{"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},"assignees":[{"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}],"milestone":null,"commits_url":"https://api.github.com/repos/prestodb/presto/pulls/6035/commits","review_comments_url":"https://api.github.com/repos/prestodb/presto/pulls/6035/comments","review_comment_url":"https://api.github.com/repos/prestodb/presto/pulls/comments{/number}","comments_url":"https://api.github.com/repos/prestodb/presto/issues/6035/comments","statuses_url":"https://api.github.com/repos/prestodb/presto/statuses/ef8d70c1a9fd98bc25560246e02351fabe745f37","head":{"label":"Teradata:feature_rewrite_out_correlation_5","ref":"feature_rewrite_out_correlation_5","sha":"ef8d70c1a9fd98bc25560246e02351fabe745f37","user":{"login":"Teradata","id":1615979,"avatar_url":"https://avatars.githubusercontent.com/u/1615979?v=3","gravatar_id":"","url":"https://api.github.com/users/Teradata","html_url":"https://github.com/Teradata","followers_url":"https://api.github.com/users/Teradata/followers","following_url":"https://api.github.com/users/Teradata/following{/other_user}","gists_url":"https://api.github.com/users/Teradata/gists{/gist_id}","starred_url":"https://api.github.com/users/Teradata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Teradata/subscriptions","organizations_url":"https://api.github.com/users/Teradata/orgs","repos_url":"https://api.github.com/users/Teradata/repos","events_url":"https://api.github.com/users/Teradata/events{/privacy}","received_events_url":"https://api.github.com/users/Teradata/received_events","type":"Organization","site_admin":false},"repo":{"id":36903368,"name":"presto","full_name":"Teradata/presto","owner":{"login":"Teradata","id":1615979,"avatar_url":"https://avatars.githubusercontent.com/u/1615979?v=3","gravatar_id":"","url":"https://api.github.com/users/Teradata","html_url":"https://github.com/Teradata","followers_url":"https://api.github.com/users/Teradata/followers","following_url":"https://api.github.com/users/Teradata/following{/other_user}","gists_url":"https://api.github.com/users/Teradata/gists{/gist_id}","starred_url":"https://api.github.com/users/Teradata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Teradata/subscriptions","organizations_url":"https://api.github.com/users/Teradata/orgs","repos_url":"https://api.github.com/users/Teradata/repos","events_url":"https://api.github.com/users/Teradata/events{/privacy}","received_events_url":"https://api.github.com/users/Teradata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Teradata/presto","description":"Teradata Distribution of Presto -- A Distributed SQL Query Engine for Big Data","fork":true,"url":"https://api.github.com/repos/Teradata/presto","forks_url":"https://api.github.com/repos/Teradata/presto/forks","keys_url":"https://api.github.com/repos/Teradata/presto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Teradata/presto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Teradata/presto/teams","hooks_url":"https://api.github.com/repos/Teradata/presto/hooks","issue_events_url":"https://api.github.com/repos/Teradata/presto/issues/events{/number}","events_url":"https://api.github.com/repos/Teradata/presto/events","assignees_url":"https://api.github.com/repos/Teradata/presto/assignees{/user}","branches_url":"https://api.github.com/repos/Teradata/presto/branches{/branch}","tags_url":"https://api.github.com/repos/Teradata/presto/tags","blobs_url":"https://api.github.com/repos/Teradata/presto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Teradata/presto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Teradata/presto/git/refs{/sha}","trees_url":"https://api.github.com/repos/Teradata/presto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Teradata/presto/statuses/{sha}","languages_url":"https://api.github.com/repos/Teradata/presto/languages","stargazers_url":"https://api.github.com/repos/Teradata/presto/stargazers","contributors_url":"https://api.github.com/repos/Teradata/presto/contributors","subscribers_url":"https://api.github.com/repos/Teradata/presto/subscribers","subscription_url":"https://api.github.com/repos/Teradata/presto/subscription","commits_url":"https://api.github.com/repos/Teradata/presto/commits{/sha}","git_commits_url":"https://api.github.com/repos/Teradata/presto/git/commits{/sha}","comments_url":"https://api.github.com/repos/Teradata/presto/comments{/number}","issue_comment_url":"https://api.github.com/repos/Teradata/presto/issues/comments{/number}","contents_url":"https://api.github.com/repos/Teradata/presto/contents/{+path}","compare_url":"https://api.github.com/repos/Teradata/presto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Teradata/presto/merges","archive_url":"https://api.github.com/repos/Teradata/presto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Teradata/presto/downloads","issues_url":"https://api.github.com/repos/Teradata/presto/issues{/number}","pulls_url":"https://api.github.com/repos/Teradata/presto/pulls{/number}","milestones_url":"https://api.github.com/repos/Teradata/presto/milestones{/number}","notifications_url":"https://api.github.com/repos/Teradata/presto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Teradata/presto/labels{/name}","releases_url":"https://api.github.com/repos/Teradata/presto/releases{/id}","deployments_url":"https://api.github.com/repos/Teradata/presto/deployments","created_at":"2015-06-05T00:38:37Z","updated_at":"2016-08-29T16:52:50Z","pushed_at":"2016-09-06T20:35:23Z","git_url":"git://github.com/Teradata/presto.git","ssh_url":"git@github.com:Teradata/presto.git","clone_url":"https://github.com/Teradata/presto.git","svn_url":"https://github.com/Teradata/presto","homepage":"http://www.teradata.com/presto","size":157390,"stargazers_count":56,"watchers_count":56,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":11,"mirror_url":null,"open_issues_count":17,"forks":11,"open_issues":17,"watchers":56,"default_branch":"master"}},"base":{"label":"prestodb:master","ref":"master","sha":"bb69575fbd8a84632ff4668b0f1c78834543ac52","user":{"login":"prestodb","id":6882181,"avatar_url":"https://avatars.githubusercontent.com/u/6882181?v=3","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,"name":"presto","full_name":"prestodb/presto","owner":{"login":"prestodb","id":6882181,"avatar_url":"https://avatars.githubusercontent.com/u/6882181?v=3","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},"private":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":"2016-09-05T10:30:22Z","pushed_at":"2016-09-06T20:19:46Z","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":162060,"stargazers_count":5084,"watchers_count":5084,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1563,"mirror_url":null,"open_issues_count":645,"forks":1563,"open_issues":645,"watchers":5084,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/prestodb/presto/pulls/6035"},"html":{"href":"https://github.com/prestodb/presto/pull/6035"},"issue":{"href":"https://api.github.com/repos/prestodb/presto/issues/6035"},"comments":{"href":"https://api.github.com/repos/prestodb/presto/issues/6035/comments"},"review_comments":{"href":"https://api.github.com/repos/prestodb/presto/pulls/6035/comments"},"review_comment":{"href":"https://api.github.com/repos/prestodb/presto/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/prestodb/presto/pulls/6035/commits"},"statuses":{"href":"https://api.github.com/repos/prestodb/presto/statuses/ef8d70c1a9fd98bc25560246e02351fabe745f37"}}}}
{"actor":{"display_login":"martint"}}