Broker Query API
REST API on the Broker
$ curl -H "Content-Type: application/json" -X POST \
-d '{"sql":"select foo, count(*) from myTable group by foo limit 100"}' \
http://localhost:8099/query/sql$ curl -k -H "Content-Type: application/json" -X POST \
-d '{"sql":"select foo, count(*) from myTable group by foo limit 100"}' \
https://localhost:8099/query/sql$ curl -H "Content-Type: application/json" -X POST \
-d '{"sql":"select foo, count(*) from myTable where foo='"'"'abc'"'"' limit 100"}' \
http://localhost:8099/query/sql$ curl -H "Content-Type: application/json" -X POST \
-d '{"sql":"select count(*) from a JOIN b ON a.x = b.x"}' \
http://localhost:8099/query$ curl -k -H "Content-Type: application/json" -X POST \
-d '{"sql":"select count(*) from a JOIN b ON a.x = b.x"}' \
https://localhost:8099/query$ curl -H "Content-Type: application/json" -X POST \
-d '{"sql":"select count(*) from a JOIN b ON a.x = b.x where foo='"'"'abc'"'"'"}' \
http://localhost:8099/queryQuery Console

pinot-admin
Last updated
Was this helpful?

