0

How can I request a few "records" from Druid without using any search/filter criteria using as simple as possible request? I relational db I'd do that by select top 10 from my_table.

The reason I want to do that is to make sure data exists and see its structure.

Community
  • 1
  • 1
imatahi
  • 591
  • 1
  • 8
  • 16

1 Answers1

0

Druid has a simple SELECT query. Just use something like this:

 {
   "queryType": "select",
   "dataSource": "wikipedia",
   "intervals": [
     "2015-01-01/2016-01-02"
   ],
   "pagingSpec":{"pagingIdentifiers": {}, "threshold":10}
 }
Lukáš Havrlant
  • 4,134
  • 2
  • 13
  • 18