Imply allows you to run SQL queries through Druid SQL, a built-in SQL layer and an alternative to Druid's native JSON-based query language. Druid SQL is powered by a parser and planner based on Apache Calcite. Druid SQL queries are translated into native queries on the query broker (the first node you query), which are then passed down to data nodes as native queries. Other than the (slight) overhead of translating SQL on the broker, Druid SQL queries do not impose an additional performance penalty versus native queries.
Pivot includes a graphical SQL query interface:
On the left is a bar showing queryable datasets (tables) and their schemas.
To run a query simply enter it into the SQL query box. You can make use of the auto complete feature and the schema on
the left to compose your query. Then click
Run. The results will appear in the results pane. You can now iterate on
your query, share it, and download the results locally using the controls in the interface.
It is also possible to explain the query plan for a given SQL query by selecting "Explain query" from the
If user management is enabled in Pivot, users need to have
AccessSQL permissions to view or use the SQL interface.
For much more information on Druid SQL, including details on its features and syntax, see the Druid SQL documentation.