apache / druid

Apache Druid: a high performance real-time analytics database.
https://druid.apache.org/
Apache License 2.0
13.51k stars 3.7k forks source link

Native Query for Druid Through Java #13818

Closed sc-aniagr closed 8 months ago

sc-aniagr commented 1 year ago

I want to make native timeseries query (Json format) example :

{ "queryType":"timeseries", "dataSource":"xyz", "intervals":[ "2022-12-18T00:00:00.000/2022-12-19T23:59:59.000" ], "granularity":"day", "aggregations":[ { "type":"doubleSum", "name":"count", "fieldName":"pqr" } ], "context":{ "skipEmptyBuckets":"false" } }

I want to put this type of query to druid through java springboot application. Can someone suggestions how can this be achieved? i tried through feign client SQL broker but that did not help. Suggestion would be appreciated.

anshu-makkar commented 1 year ago

You can use and extend druidry

Hikamare commented 1 year ago

You can just send the query via POST request to YOUR_DRUID_INSTANCE/druid/v2 with the query itself being a JSON with the request body :)

github-actions[bot] commented 9 months ago

This issue has been marked as stale due to 280 days of inactivity. It will be closed in 4 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@druid.apache.org list. Thank you for your contributions.

github-actions[bot] commented 8 months ago

This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.