{"id":13795328,"url":"https://github.com/daggerrz/druid-scala-client","last_synced_at":"2026-01-10T21:45:15.814Z","repository":{"id":10482140,"uuid":"12660659","full_name":"daggerrz/druid-scala-client","owner":"daggerrz","description":"A Scala client for Druid","archived":false,"fork":false,"pushed_at":"2017-01-12T15:44:20.000Z","size":17,"stargazers_count":16,"open_issues_count":1,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-02-14T21:34:56.127Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daggerrz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-07T06:00:24.000Z","updated_at":"2019-05-15T19:43:26.000Z","dependencies_parsed_at":"2022-09-07T03:02:31.301Z","dependency_job_id":null,"html_url":"https://github.com/daggerrz/druid-scala-client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerrz%2Fdruid-scala-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerrz%2Fdruid-scala-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerrz%2Fdruid-scala-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerrz%2Fdruid-scala-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daggerrz","download_url":"https://codeload.github.com/daggerrz/druid-scala-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253833090,"owners_count":21971357,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T23:00:54.689Z","updated_at":"2026-01-10T21:45:15.760Z","avatar_url":"https://github.com/daggerrz.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"Getting started (requires the Wikipedia example to be running):\n\nSee also https://github.com/daggerrz/druid-scala-client/blob/master/src/test/scala/com/tapad/druid/client/WikipediaExample.scala\n\n```scala\n    import scala.concurrent.ExecutionContext\n    import org.joda.time.{DateTime, Interval}\n    import scala.util.{Failure, Success}\n\n    implicit val executionContext = ExecutionContext.Implicits.global\n    val client = DruidClient(\"http://localhost:8083\")\n\n    import com.tapad.druid.client.DSL._\n    val query = GroupByQuery(\n      source = \"wikipedia\",\n      interval = new Interval(new DateTime().minusDays(1), new DateTime()),\n      dimensions = Seq(\"page\"),\n      granularity = Granularity.All,\n      aggregate = Seq(\n        sum(\"count\") as \"edits\",\n        sum(\"added\") as \"chars_added\"\n      ),\n      postAggregate = Seq(\n        \"chars_added\" / \"edits\" as \"chars_per_edit\"\n      ),\n      filter = \"namespace\" === \"article\" and \"country\" === \"United States\",\n      orderBy = Seq(\n        \"chars_added\" desc\n      ),\n      limit = Some(100)\n    )\n\n    client(query).onComplete {\n      case Success(resp) =\u003e\n        resp.data.foreach { row =\u003e\n          println(\"Page %s, %s edits, %s chars added, %s per edit\".format(\n            row(\"page\"), row(\"edits\"), row(\"chars_added\"), row(\"chars_per_edit\")\n          ))\n        }\n      case Failure(ex) =\u003e\n        ex.printStackTrace()\n    }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaggerrz%2Fdruid-scala-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaggerrz%2Fdruid-scala-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaggerrz%2Fdruid-scala-client/lists"}