Slackbot
05/18/2023, 1:01 PMJohn Kowtko
05/18/2023, 2:23 PMcurl --location --request POST '<http://localhost:8888/druid/v2/sql/>' \
--header 'Content-Type: application/json' \
--data-raw '{ "query" : "SELECT regionName, COUNT(*) FROM wikipedia where regionName is not null GROUP BY 1 ORDER BY 2 DESC ", "resultFormat":"csv"}'
JSON format I thought requires each fieldname to accompany each field value so I don't think you can get the "single header line" format that CSV provides automatically.marco barison
05/18/2023, 2:46 PM