Skip to content

Instantly share code, notes, and snippets.

@lastlegion
Created November 4, 2016 03:31
Show Gist options
  • Save lastlegion/56a5ce8929b0c67772ca901225477b7f to your computer and use it in GitHub Desktop.
Save lastlegion/56a5ce8929b0c67772ca901225477b7f to your computer and use it in GitHub Desktop.
Sample Druid query
{
"queryType" : "topN",
"dataSource" : "dummyx",
"intervals" : ["2014-01-01/2016-10-13"],
"granularity" : "all",
"dimension" : "eyeColor",
"metric" : "count",
"threshold" : 25,
"aggregations" :[
{
"type": "longSum",
"name": "count",
"fieldName": "count"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment