druid:search/scan/select的查询

druid查询之search/scan/select



{
  "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}
}

posted @ 2019-12-11 14:37  Adamanter  阅读(339)  评论(0编辑  收藏  举报