Skip to content

Instantly share code, notes, and snippets.

@indrekj
Created May 21, 2020 16:07
Show Gist options
  • Save indrekj/cef04698ceececf5199c5cb6ff6d6234 to your computer and use it in GitHub Desktop.
Save indrekj/cef04698ceececf5199c5cb6ff6d6234 to your computer and use it in GitHub Desktop.
{
"type": "index_parallel",
"spec": {
"dataSchema": {
"dataSource": "visitor_events-sessions-test1",
"timestampSpec": {
"column": "timestamp",
"format": "auto"
},
"dimensionsSpec": {
"dimensions": ["site_id", "environment_name"]
},
"metricsSpec": [
{ "type": "doubleSum", "name": "count", "fieldName": "count" },
{ "type": "thetaSketch", "name": "visitor_id_sketch", "fieldName": "visitor_id" }
],
"granularitySpec": {
"segmentGranularity": "day",
"queryGranularity": "hour",
"intervals": [
"2020-05-18/2020-05-21"
]
}
},
"ioConfig": {
"type": "index_parallel",
"inputSource": {
"type": "druid",
"dataSource": "visitor_events-sessions-v2",
"interval": "2020-05-01/2020-06-01",
"dimensions": ["site_id", "environment_name", "visitor_id"],
"metrics": ["count"]
}
},
"tuningConfig": {
"type": "index_parallel"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment