How to get the built-in sql connect to a client app


I wonder if it is possible to get my Kafka data written in druid (this part already working) and consumable as a Jdbc connector like thing so that I can connect a client app (say, sqlworkbench) and run queries.

I figured this could be done by the

I expect to do

"Querying with JDBC

You can make Druid SQL queries using the Avatica JDBC driver. Once you’ve downloaded the Avatica client jar, add it to your classpath and use the connect string:“jdbc:avatica:remote:url=http://BROKER:8082/druid/v2/sql/avatica/”

So far I got a simple sql working.

curl -XPOST -H’Content-Type:{“query”:“SELECT myType, COUNT(*) FROM My_DS group by myType”}’


but order by does not work. I wonder what is the flavor of the sql is supported?

However sqlworkbench does not seem to talk to Avatica JDBC driver?