Principle:Apache Druid Result Analysis
| Knowledge Sources | |
|---|---|
| Domains | SQL_Querying, Data_Visualization |
| Last Updated | 2026-02-10 00:00 GMT |
Overview
A query result presentation principle that renders tabular data and MSQ execution stage visualizations for analysis and exploration.
Description
Result Analysis transforms raw query results into interactive visual representations:
- Result Table: For both native and MSQ queries — an interactive table with column sorting, filtering, cell context menus (copy value, add filter, aggregate), pagination, and column type indicators
- Execution Stages: For MSQ queries only — a directed acyclic graph (DAG) visualization showing stage dependencies, input/output row counts, processing rates, timing bars, CPU utilization, and worker counts per stage
The result analysis tools enable users to understand both the data output and the execution characteristics of their queries, facilitating iterative query optimization.
Usage
Use this principle immediately after query execution completes. The result analysis view is shown automatically in the Workbench below the query editor.
Theoretical Basis
Result analysis follows a dual-view presentation pattern:
For native queries:
QueryResult { columns: Column[], rows: any[][] } → Interactive ReactTable
For MSQ queries:
Execution { stages: Stage[], result: QueryResult } → Stage graph + Result table
Stage visualization:
Each stage shows: inputRows, outputRows, duration, workerCount, cpuTime
Stage dependencies rendered as DAG edges