{"action":"created","comment":{"url":"https://api.github.com/repos/druid-io/druid/pulls/comments/191083139","pull_request_review_id":123590511,"id":191083139,"diff_hunk":"@@ -0,0 +1,344 @@\n+/*\n+ * Licensed to Metamarkets Group Inc. (Metamarkets) under one\n+ * or more contributor license agreements. See the NOTICE file\n+ * distributed with this work for additional information\n+ * regarding copyright ownership. Metamarkets licenses this file\n+ * to you under the Apache License, Version 2.0 (the\n+ * \"License\"); you may not use this file except in compliance\n+ * with the License. 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,\n+ * software distributed under the License is distributed on an\n+ * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n+ * KIND, either express or implied. See the License for the\n+ * specific language governing permissions and limitations\n+ * under the License.\n+ */\n+\n+package io.druid.indexing.materializedview;\n+\n+import com.fasterxml.jackson.annotation.JacksonInject;\n+import com.fasterxml.jackson.annotation.JsonProperty;\n+import com.fasterxml.jackson.databind.ObjectMapper;\n+import com.google.common.base.Preconditions;\n+import com.google.common.collect.ImmutableList;\n+import com.google.common.collect.Maps;\n+import com.google.common.collect.Sets;\n+import io.druid.data.input.impl.DimensionSchema;\n+import io.druid.data.input.impl.DimensionsSpec;\n+import io.druid.indexer.HadoopIOConfig;\n+import io.druid.indexer.HadoopIngestionSpec;\n+import io.druid.indexer.HadoopTuningConfig;\n+import io.druid.indexer.hadoop.DatasourceIngestionSpec;\n+import io.druid.indexing.common.task.HadoopIndexTask;\n+import io.druid.indexing.overlord.IndexerMetadataStorageCoordinator;\n+import io.druid.indexing.overlord.TaskMaster;\n+import io.druid.indexing.overlord.TaskStorage;\n+import io.druid.indexing.overlord.supervisor.Supervisor;\n+import io.druid.indexing.overlord.supervisor.SupervisorSpec;\n+import io.druid.java.util.common.DateTimes;\n+import io.druid.java.util.common.StringUtils;\n+import io.druid.java.util.common.granularity.Granularities;\n+import io.druid.metadata.MetadataSupervisorManager;\n+import io.druid.metadata.SQLMetadataSegmentManager;\n+import io.druid.query.aggregation.AggregatorFactory;\n+import io.druid.segment.indexing.DataSchema;\n+import io.druid.segment.indexing.granularity.ArbitraryGranularitySpec;\n+import io.druid.segment.realtime.firehose.ChatHandlerProvider;\n+import io.druid.segment.transform.TransformSpec;\n+import io.druid.server.security.AuthorizerMapper;\n+import io.druid.timeline.DataSegment;\n+import org.apache.commons.codec.digest.DigestUtils;\n+import org.joda.time.Interval;\n+\n+import java.util.List;\n+import java.util.Map;\n+import java.util.Set;\n+\n+public class MaterializedViewSupervisorSpec implements SupervisorSpec \n+{\n+  private static final String TASK_PREFIX = \"index_materialized_view\";\n+  private final String baseDataSource;\n+  private final DimensionsSpec dimensionsSpec;\n+  private final AggregatorFactory[] aggregators;\n+  private final HadoopTuningConfig tuningConfig;\n+  private final String dataSourceName;\n+  private final String hadoopCoordinates;\n+  private final List<String> hadoopDependencyCoordinates;\n+  private final String classpathPrefix;\n+  private final Map<String, Object> context;\n+  private final Set<String> metrics;\n+  private final Set<String> dimensions;\n+  private final ObjectMapper objectMapper;\n+  private final MetadataSupervisorManager metadataSupervisorManager;\n+  private final IndexerMetadataStorageCoordinator metadataStorageCoordinator;\n+  private final SQLMetadataSegmentManager segmentManager;\n+  private final TaskMaster taskMaster;\n+  private final TaskStorage taskStorage;\n+  private final MaterializedViewTaskConfig config;\n+  private final AuthorizerMapper authorizerMapper;\n+  private final ChatHandlerProvider chatHandlerProvider;\n+  \n+  public MaterializedViewSupervisorSpec(\n+      @JsonProperty(\"baseDataSource\") String baseDataSource,\n+      @JsonProperty(\"dimensionsSpec\") DimensionsSpec dimensionsSpec,\n+      @JsonProperty(\"metricsSpec\") AggregatorFactory[] aggregators,\n+      @JsonProperty(\"tuningConfig\") HadoopTuningConfig tuningConfig,\n+      @JsonProperty(\"dataSource\") String dataSourceName,\n+      @JsonProperty(\"hadoopCoordinates\") String hadoopCoordinates,\n+      @JsonProperty(\"hadoopDependencyCoordinates\") List<String> hadoopDependencyCoordinates,\n+      @JsonProperty(\"classpathPrefix\") String classpathPrefix,\n+      @JsonProperty(\"context\") Map<String, Object> context,\n+      @JacksonInject ObjectMapper objectMapper,\n+      @JacksonInject TaskMaster taskMaster,\n+      @JacksonInject TaskStorage taskStorage,\n+      @JacksonInject MetadataSupervisorManager metadataSupervisorManager,\n+      @JacksonInject SQLMetadataSegmentManager segmentManager,\n+      @JacksonInject IndexerMetadataStorageCoordinator metadataStorageCoordinator,\n+      @JacksonInject MaterializedViewTaskConfig config,\n+      @JacksonInject AuthorizerMapper authorizerMapper,\n+      @JacksonInject ChatHandlerProvider chatHandlerProvider\n+  )\n+  {\n+    this.baseDataSource = Preconditions.checkNotNull(\n+                            baseDataSource, \n+                            \"baseDataSource cannot be null. Please provide a baseDataSource.\"\n+                          );\n+    this.dimensionsSpec = Preconditions.checkNotNull(\n+                            dimensionsSpec, \n+                            \"dimensionsSpec cannot be null. Please provide a dimensionsSpec\"\n+                          );\n+    this.aggregators = Preconditions.checkNotNull(\n+                         aggregators, \n+                         \"metricsSpec cannot be null. Please provide a metricsSpec\"\n+                       );\n+    this.tuningConfig = Preconditions.checkNotNull(\n+                          tuningConfig, \n+                          \"tuningConfig cannot be null. Please provide tuningConfig\"\n+                        );\n+    \n+    this.dataSourceName = dataSourceName == null \n+                          ? StringUtils.format(\n+                              \"%s-%s\", \n+                              baseDataSource, \n+                              DigestUtils.sha1Hex(dimensionsSpec.toString()).substring(0, 8)\n+                            ) \n+                          : dataSourceName;\n+    this.hadoopCoordinates = hadoopCoordinates;\n+    this.hadoopDependencyCoordinates = hadoopDependencyCoordinates;\n+    this.classpathPrefix = classpathPrefix;\n+    this.context = context == null ? Maps.newHashMap() : context;\n+    this.objectMapper = objectMapper;\n+    this.taskMaster = taskMaster;\n+    this.taskStorage = taskStorage;\n+    this.metadataSupervisorManager = metadataSupervisorManager;\n+    this.segmentManager = segmentManager;\n+    this.metadataStorageCoordinator = metadataStorageCoordinator;\n+    this.authorizerMapper = authorizerMapper;\n+    this.chatHandlerProvider = chatHandlerProvider;\n+    this.config = config;\n+    \n+    this.metrics = Sets.newHashSet();\n+    for (AggregatorFactory aggregatorFactory : aggregators) {\n+      metrics.add(aggregatorFactory.getName());\n+    }\n+    this.dimensions = Sets.newHashSet();\n+    for (DimensionSchema schema : dimensionsSpec.getDimensions()) {\n+      dimensions.add(schema.getName());\n+    }\n+  }\n+  \n+  public HadoopIndexTask createTask(Interval interval, String version, List<DataSegment> segments)\n+  {\n+    String taskId = StringUtils.format(\"%s_%s_%s\", TASK_PREFIX, dataSourceName, DateTimes.nowUtc());\n+    \n+    // generate parser\n+    Map<String, Object> parseSpec = Maps.newHashMap();\n+    parseSpec.put(\"format\", \"timeAndDims\");\n+    parseSpec.put(\"dimensionsSpec\", dimensionsSpec);\n+    Map<String, Object> parser = Maps.newHashMap();\n+    parser.put(\"type\", \"map\");\n+    parser.put(\"parseSpec\", parseSpec);\n+    \n+    //generate HadoopTuningConfig\n+    HadoopTuningConfig tuningConfigForTask = new HadoopTuningConfig(","path":"extensions-contrib/materialized-view-maintenance/src/main/java/io/druid/indexing/materializedview/MaterializedViewSupervisorSpec.java","position":166,"original_position":166,"commit_id":"1938ce566f53fdc2e3ac53504307a3f90e303619","original_commit_id":"1938ce566f53fdc2e3ac53504307a3f90e303619","user":{"login":"Dylan1312","id":3107079,"avatar_url":"https://avatars0.githubusercontent.com/u/3107079?v=4","gravatar_id":"","url":"https://api.github.com/users/Dylan1312","html_url":"https://github.com/Dylan1312","followers_url":"https://api.github.com/users/Dylan1312/followers","following_url":"https://api.github.com/users/Dylan1312/following{/other_user}","gists_url":"https://api.github.com/users/Dylan1312/gists{/gist_id}","starred_url":"https://api.github.com/users/Dylan1312/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dylan1312/subscriptions","organizations_url":"https://api.github.com/users/Dylan1312/orgs","repos_url":"https://api.github.com/users/Dylan1312/repos","events_url":"https://api.github.com/users/Dylan1312/events{/privacy}","received_events_url":"https://api.github.com/users/Dylan1312/received_events","type":"User","site_admin":false},"body":"Cool thanks!","created_at":"2018-05-27T17:31:09Z","updated_at":"2018-05-27T17:31:10Z","html_url":"https://github.com/druid-io/druid/pull/5556#discussion_r191083139","pull_request_url":"https://api.github.com/repos/druid-io/druid/pulls/5556","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/druid-io/druid/pulls/comments/191083139"},"html":{"href":"https://github.com/druid-io/druid/pull/5556#discussion_r191083139"},"pull_request":{"href":"https://api.github.com/repos/druid-io/druid/pulls/5556"}},"in_reply_to_id":190199105},"pull_request":{"url":"https://api.github.com/repos/druid-io/druid/pulls/5556","id":178489231,"html_url":"https://github.com/druid-io/druid/pull/5556","diff_url":"https://github.com/druid-io/druid/pull/5556.diff","patch_url":"https://github.com/druid-io/druid/pull/5556.patch","issue_url":"https://api.github.com/repos/druid-io/druid/issues/5556","number":5556,"state":"open","locked":false,"title":"Materialized view implementation","user":{"login":"zhangxinyu1","id":12528894,"avatar_url":"https://avatars2.githubusercontent.com/u/12528894?v=4","gravatar_id":"","url":"https://api.github.com/users/zhangxinyu1","html_url":"https://github.com/zhangxinyu1","followers_url":"https://api.github.com/users/zhangxinyu1/followers","following_url":"https://api.github.com/users/zhangxinyu1/following{/other_user}","gists_url":"https://api.github.com/users/zhangxinyu1/gists{/gist_id}","starred_url":"https://api.github.com/users/zhangxinyu1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhangxinyu1/subscriptions","organizations_url":"https://api.github.com/users/zhangxinyu1/orgs","repos_url":"https://api.github.com/users/zhangxinyu1/repos","events_url":"https://api.github.com/users/zhangxinyu1/events{/privacy}","received_events_url":"https://api.github.com/users/zhangxinyu1/received_events","type":"User","site_admin":false},"body":"### Target\r\nTo optimize query.\r\n\r\n### Implementation\r\nThere are two extensions namely materialized-view-maintenance and materialized-view-selection. \r\n\r\nIn materialized-view-maintenance, `MaterializedViewSupervisor` is used to generate or drop derived datasource segments and keep the timeline's consistency of base datasource and derived datasource.\r\n\r\nIn materialized-view-selection, `MaterializedViewQuery` is implemented to do materialized-view-selection for topn/groupby/timeseries query.\r\n\r\nThe detailed design and discussion is in issue #5304\r\n\r\n### Usage\r\n\r\n1. [Loading materialized-view-maintenance and materialized-view-selection](http://druid.io/docs/latest/operations/including-extensions.html). Notices: materialized-view-selection can only be loaded when start broker.\r\n2. Submit a MaterializedViewSupervisor. e.g.:\r\n```\r\n{\r\n  \"type\" : \"derivativeDataSource\",\r\n  \"baseDataSource\": \"wikiticker\",\r\n  \"dimensionsSpec\":{\r\n            \"dimensions\" : [\r\n              \"isUnpatrolled\",\r\n              \"metroCode\",\r\n              \"namespace\",\r\n              \"page\",\r\n              \"regionIsoCode\",\r\n              \"regionName\",\r\n              \"user\"\r\n            ]\r\n          },\r\n    \"metricsSpec\" : [\r\n        {\r\n          \"name\" : \"count\",\r\n          \"type\" : \"count\"\r\n        },\r\n        {\r\n          \"name\" : \"added\",\r\n          \"type\" : \"longSum\",\r\n          \"fieldName\" : \"added\"\r\n        }\r\n      ],\r\n  \"tuningConfig\": {\r\n      \"type\" : \"hadoop\"\r\n  }\r\n}\r\n```\r\n3. Send a MaterializedViewQuery. e.g.:\r\n```\r\n{\r\n    \"queryType\": \"view\",\r\n    \"query\": {\r\n        \"queryType\": \"groupBy\",\r\n        \"dataSource\": \"wikiticker\",\r\n        \"granularity\": \"all\",\r\n        \"dimensions\": [\r\n            \"user\"\r\n        ],\r\n        \"limitSpec\": {\r\n            \"type\": \"default\",\r\n            \"limit\": 1,\r\n            \"columns\": [\r\n                {\r\n                    \"dimension\": \"added\",\r\n                    \"direction\": \"descending\",\r\n                    \"dimensionOrder\": \"numeric\"\r\n                }\r\n            ]\r\n        },\r\n        \"aggregations\": [\r\n            {\r\n                \"type\": \"longSum\",\r\n                \"name\": \"added\",\r\n                \"fieldName\": \"added\"\r\n            }\r\n        ],\r\n        \"intervals\": [\r\n            \"2015-09-12/2015-09-13\"\r\n        ]\r\n    }\r\n}\r\n```","created_at":"2018-03-30T03:52:03Z","updated_at":"2018-05-27T17:31:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"135254189b969c4d32b9380b2c78d0b47acb010a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":592291319,"url":"https://api.github.com/repos/druid-io/druid/labels/Design%20Review","name":"Design Review","color":"f9d0c4","default":false},{"id":17287687,"url":"https://api.github.com/repos/druid-io/druid/labels/Feature","name":"Feature","color":"2ceefb","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/druid-io/druid/pulls/5556/commits","review_comments_url":"https://api.github.com/repos/druid-io/druid/pulls/5556/comments","review_comment_url":"https://api.github.com/repos/druid-io/druid/pulls/comments{/number}","comments_url":"https://api.github.com/repos/druid-io/druid/issues/5556/comments","statuses_url":"https://api.github.com/repos/druid-io/druid/statuses/1938ce566f53fdc2e3ac53504307a3f90e303619","head":{"label":"zhangxinyu1:feature-materialized-view-1.0","ref":"feature-materialized-view-1.0","sha":"1938ce566f53fdc2e3ac53504307a3f90e303619","user":{"login":"zhangxinyu1","id":12528894,"avatar_url":"https://avatars2.githubusercontent.com/u/12528894?v=4","gravatar_id":"","url":"https://api.github.com/users/zhangxinyu1","html_url":"https://github.com/zhangxinyu1","followers_url":"https://api.github.com/users/zhangxinyu1/followers","following_url":"https://api.github.com/users/zhangxinyu1/following{/other_user}","gists_url":"https://api.github.com/users/zhangxinyu1/gists{/gist_id}","starred_url":"https://api.github.com/users/zhangxinyu1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhangxinyu1/subscriptions","organizations_url":"https://api.github.com/users/zhangxinyu1/orgs","repos_url":"https://api.github.com/users/zhangxinyu1/repos","events_url":"https://api.github.com/users/zhangxinyu1/events{/privacy}","received_events_url":"https://api.github.com/users/zhangxinyu1/received_events","type":"User","site_admin":false},"repo":{"id":127296575,"name":"druid","full_name":"zhangxinyu1/druid","owner":{"login":"zhangxinyu1","id":12528894,"avatar_url":"https://avatars2.githubusercontent.com/u/12528894?v=4","gravatar_id":"","url":"https://api.github.com/users/zhangxinyu1","html_url":"https://github.com/zhangxinyu1","followers_url":"https://api.github.com/users/zhangxinyu1/followers","following_url":"https://api.github.com/users/zhangxinyu1/following{/other_user}","gists_url":"https://api.github.com/users/zhangxinyu1/gists{/gist_id}","starred_url":"https://api.github.com/users/zhangxinyu1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhangxinyu1/subscriptions","organizations_url":"https://api.github.com/users/zhangxinyu1/orgs","repos_url":"https://api.github.com/users/zhangxinyu1/repos","events_url":"https://api.github.com/users/zhangxinyu1/events{/privacy}","received_events_url":"https://api.github.com/users/zhangxinyu1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zhangxinyu1/druid","description":"Column oriented distributed data store ideal for powering interactive applications","fork":true,"url":"https://api.github.com/repos/zhangxinyu1/druid","forks_url":"https://api.github.com/repos/zhangxinyu1/druid/forks","keys_url":"https://api.github.com/repos/zhangxinyu1/druid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zhangxinyu1/druid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zhangxinyu1/druid/teams","hooks_url":"https://api.github.com/repos/zhangxinyu1/druid/hooks","issue_events_url":"https://api.github.com/repos/zhangxinyu1/druid/issues/events{/number}","events_url":"https://api.github.com/repos/zhangxinyu1/druid/events","assignees_url":"https://api.github.com/repos/zhangxinyu1/druid/assignees{/user}","branches_url":"https://api.github.com/repos/zhangxinyu1/druid/branches{/branch}","tags_url":"https://api.github.com/repos/zhangxinyu1/druid/tags","blobs_url":"https://api.github.com/repos/zhangxinyu1/druid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zhangxinyu1/druid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zhangxinyu1/druid/git/refs{/sha}","trees_url":"https://api.github.com/repos/zhangxinyu1/druid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zhangxinyu1/druid/statuses/{sha}","languages_url":"https://api.github.com/repos/zhangxinyu1/druid/languages","stargazers_url":"https://api.github.com/repos/zhangxinyu1/druid/stargazers","contributors_url":"https://api.github.com/repos/zhangxinyu1/druid/contributors","subscribers_url":"https://api.github.com/repos/zhangxinyu1/druid/subscribers","subscription_url":"https://api.github.com/repos/zhangxinyu1/druid/subscription","commits_url":"https://api.github.com/repos/zhangxinyu1/druid/commits{/sha}","git_commits_url":"https://api.github.com/repos/zhangxinyu1/druid/git/commits{/sha}","comments_url":"https://api.github.com/repos/zhangxinyu1/druid/comments{/number}","issue_comment_url":"https://api.github.com/repos/zhangxinyu1/druid/issues/comments{/number}","contents_url":"https://api.github.com/repos/zhangxinyu1/druid/contents/{+path}","compare_url":"https://api.github.com/repos/zhangxinyu1/druid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zhangxinyu1/druid/merges","archive_url":"https://api.github.com/repos/zhangxinyu1/druid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zhangxinyu1/druid/downloads","issues_url":"https://api.github.com/repos/zhangxinyu1/druid/issues{/number}","pulls_url":"https://api.github.com/repos/zhangxinyu1/druid/pulls{/number}","milestones_url":"https://api.github.com/repos/zhangxinyu1/druid/milestones{/number}","notifications_url":"https://api.github.com/repos/zhangxinyu1/druid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zhangxinyu1/druid/labels{/name}","releases_url":"https://api.github.com/repos/zhangxinyu1/druid/releases{/id}","deployments_url":"https://api.github.com/repos/zhangxinyu1/druid/deployments","created_at":"2018-03-29T13:37:15Z","updated_at":"2018-05-25T02:18:35Z","pushed_at":"2018-05-25T02:18:32Z","git_url":"git://github.com/zhangxinyu1/druid.git","ssh_url":"git@github.com:zhangxinyu1/druid.git","clone_url":"https://github.com/zhangxinyu1/druid.git","svn_url":"https://github.com/zhangxinyu1/druid","homepage":"http://druid.io","size":136395,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"druid-io:master","ref":"master","sha":"15864434be35cd099493521c5f902ef3a3fa587b","user":{"login":"druid-io","id":4203474,"avatar_url":"https://avatars0.githubusercontent.com/u/4203474?v=4","gravatar_id":"","url":"https://api.github.com/users/druid-io","html_url":"https://github.com/druid-io","followers_url":"https://api.github.com/users/druid-io/followers","following_url":"https://api.github.com/users/druid-io/following{/other_user}","gists_url":"https://api.github.com/users/druid-io/gists{/gist_id}","starred_url":"https://api.github.com/users/druid-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/druid-io/subscriptions","organizations_url":"https://api.github.com/users/druid-io/orgs","repos_url":"https://api.github.com/users/druid-io/repos","events_url":"https://api.github.com/users/druid-io/events{/privacy}","received_events_url":"https://api.github.com/users/druid-io/received_events","type":"Organization","site_admin":false},"repo":{"id":6358188,"name":"druid","full_name":"druid-io/druid","owner":{"login":"druid-io","id":4203474,"avatar_url":"https://avatars0.githubusercontent.com/u/4203474?v=4","gravatar_id":"","url":"https://api.github.com/users/druid-io","html_url":"https://github.com/druid-io","followers_url":"https://api.github.com/users/druid-io/followers","following_url":"https://api.github.com/users/druid-io/following{/other_user}","gists_url":"https://api.github.com/users/druid-io/gists{/gist_id}","starred_url":"https://api.github.com/users/druid-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/druid-io/subscriptions","organizations_url":"https://api.github.com/users/druid-io/orgs","repos_url":"https://api.github.com/users/druid-io/repos","events_url":"https://api.github.com/users/druid-io/events{/privacy}","received_events_url":"https://api.github.com/users/druid-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/druid-io/druid","description":"Column oriented distributed data store ideal for powering interactive applications","fork":false,"url":"https://api.github.com/repos/druid-io/druid","forks_url":"https://api.github.com/repos/druid-io/druid/forks","keys_url":"https://api.github.com/repos/druid-io/druid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/druid-io/druid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/druid-io/druid/teams","hooks_url":"https://api.github.com/repos/druid-io/druid/hooks","issue_events_url":"https://api.github.com/repos/druid-io/druid/issues/events{/number}","events_url":"https://api.github.com/repos/druid-io/druid/events","assignees_url":"https://api.github.com/repos/druid-io/druid/assignees{/user}","branches_url":"https://api.github.com/repos/druid-io/druid/branches{/branch}","tags_url":"https://api.github.com/repos/druid-io/druid/tags","blobs_url":"https://api.github.com/repos/druid-io/druid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/druid-io/druid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/druid-io/druid/git/refs{/sha}","trees_url":"https://api.github.com/repos/druid-io/druid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/druid-io/druid/statuses/{sha}","languages_url":"https://api.github.com/repos/druid-io/druid/languages","stargazers_url":"https://api.github.com/repos/druid-io/druid/stargazers","contributors_url":"https://api.github.com/repos/druid-io/druid/contributors","subscribers_url":"https://api.github.com/repos/druid-io/druid/subscribers","subscription_url":"https://api.github.com/repos/druid-io/druid/subscription","commits_url":"https://api.github.com/repos/druid-io/druid/commits{/sha}","git_commits_url":"https://api.github.com/repos/druid-io/druid/git/commits{/sha}","comments_url":"https://api.github.com/repos/druid-io/druid/comments{/number}","issue_comment_url":"https://api.github.com/repos/druid-io/druid/issues/comments{/number}","contents_url":"https://api.github.com/repos/druid-io/druid/contents/{+path}","compare_url":"https://api.github.com/repos/druid-io/druid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/druid-io/druid/merges","archive_url":"https://api.github.com/repos/druid-io/druid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/druid-io/druid/downloads","issues_url":"https://api.github.com/repos/druid-io/druid/issues{/number}","pulls_url":"https://api.github.com/repos/druid-io/druid/pulls{/number}","milestones_url":"https://api.github.com/repos/druid-io/druid/milestones{/number}","notifications_url":"https://api.github.com/repos/druid-io/druid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/druid-io/druid/labels{/name}","releases_url":"https://api.github.com/repos/druid-io/druid/releases{/id}","deployments_url":"https://api.github.com/repos/druid-io/druid/deployments","created_at":"2012-10-23T19:08:07Z","updated_at":"2018-05-27T17:15:52Z","pushed_at":"2018-05-25T15:01:09Z","git_url":"git://github.com/druid-io/druid.git","ssh_url":"git@github.com:druid-io/druid.git","clone_url":"https://github.com/druid-io/druid.git","svn_url":"https://github.com/druid-io/druid","homepage":"http://druid.io","size":138230,"stargazers_count":6565,"watchers_count":6565,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1600,"mirror_url":null,"archived":false,"open_issues_count":1031,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":1600,"open_issues":1031,"watchers":6565,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/druid-io/druid/pulls/5556"},"html":{"href":"https://github.com/druid-io/druid/pull/5556"},"issue":{"href":"https://api.github.com/repos/druid-io/druid/issues/5556"},"comments":{"href":"https://api.github.com/repos/druid-io/druid/issues/5556/comments"},"review_comments":{"href":"https://api.github.com/repos/druid-io/druid/pulls/5556/comments"},"review_comment":{"href":"https://api.github.com/repos/druid-io/druid/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/druid-io/druid/pulls/5556/commits"},"statuses":{"href":"https://api.github.com/repos/druid-io/druid/statuses/1938ce566f53fdc2e3ac53504307a3f90e303619"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Dylan1312"}}