druid查询之search/scan/select
search
{
"queryType": "search",
"dataSource": "sample_datasource",
"granularity": "day",
"searchDimensions": [
"dim1",
"dim2"
],
"query": {
"type": "insensitive_contains",
"value": "Ke"
},
"sort" : {
"type": "lexicographic"
},
"intervals": [
"2013-01-01T00:00:00.000/2013-01-03T00:00:00.000"
]}
scan
{
"filter": {
"type": "or",
"fields": [
{
"type": "selector",
"dimension": "event",
"value": "interface"
}
]
},
"queryType": "scan",
"dataSource": "apprenrenzhibo-app_statistic",
"resultFormat": "list",
"columns":[],
"intervals": [
"2019-08-06T16:00:00.000Z/2019-08-14T16:00:00.000Z"
],
"batchSize":20480,
"limit":3
}
select
{
"filter": {
"type": "or",
"fields": [
{
"type": "selector",
"dimension": "event",
"value": "interface"
}
]
},
"queryType": "select",
"dataSource": "apprenrenzhibo-app_statistic",
"descending": "false",
"dimensions":[],
"metrics":[],
"granularity": "all",
"intervals": [
"2019-08-06T16:00:00.000Z/2019-08-14T16:00:00.000Z"
],
"pagingSpec":{"pagingIdentifiers": {}, "threshold":5}
}