Trino Queries Details

The Trino Query Details page provides a comprehensive view of each executed Trino query, including the SQL statement, execution metrics, resource usage, and the query execution plan. This helps you analyze query behavior, performance bottlenecks, and system utilization.

Query Overview

In the Summary Panel, you can view high-level details about the query.

MetricDescription
UserThe user who submitted the query (e.g., root).
StateThe final query state (e.g., FINISHED, FAILED, CANCELED).
Transaction IDUnique transaction identifier associated with the query.
# of StagesNumber of execution stages in the query plan.
DurationTotal time taken to complete the query.
Created TimeTimestamp when the query was created.
Start TimeTimestamp when the query started execution.
End TimeTimestamp when the query finished execution.

Query Text and Catalog Information

This section shows the actual SQL query and the metadata of the involved tables:

  • Query: The submitted SQL text.
  • Catalog, Schema, Table: Location of referenced tables.
  • Authorization: User role used for access.
  • Columns: Lists the column(s) involved in the query.

Stage Execution Metrics

Each query is broken down into stages, which represent different parts of the query execution. Each stage includes the following details.

FieldDescription
Stage IDUnique identifier of the stage.
Parent IDIndicates the parent stage in the DAG (if any).
Total TasksNumber of parallel tasks run in this stage.
Failed TasksNumber of tasks that failed during execution.
Completed TasksNumber of tasks that finished successfully.
CPU TimeTotal CPU time consumed by the tasks.
Completed DriversNumber of drivers (executors) that completed.
Peak User MemoryMaximum memory used by a driver for that stage.
Total Scheduled TimeTotal time scheduled across all drivers.
Blocked TimeTime spent waiting (e.g., for I/O, resources).
Output Data SizeThe total amount of data output by the stage.
User/Memory ReservationReserved memory amount per stage/driver.

You can expand a stage for detailed tasks and operator-level metrics.

Task Stats Panel (Per Stage)

This displays per-task execution details within a selected stage.

MetricDescription
Task IDUnique identifier for the task.
StateStatus of the task (e.g., FINISHED).
Output Data SizeThe amount of data produced.
Node IDThe specific worker node executing the task.
Peak User Memory Reservation
Garbage Collection (GC) TimeTime spent on Java GC.
Elapsed TimeTime taken by the task.
CPU TimeThe time CPU consumed for processing.
Start, Create, End TimeExecution timestamps.

Operator Stats (Per Task)

This shows the breakdown of operators used within a task.

MetricDescription
Operator ID and TypeIdentifies execution units like ScanFilter, PartitionedOutput.
Output Data SizeData emitted by the operator.
Memory ReservationPeak Total and User Memory used.
Plan Node IDMaps the operator back to the DAG node.
Total DriversNumber of drivers executing that operator.

Query Plan and DAG

The Query Plan and DAG section visualizes how Trino executes the query across its distributed architecture.

DAG (Directed Acyclic Graph) Tab

The DAG tab shows how the query is broken into logical plan nodes, including how data flows between stages and operations. It’s useful for identifying the execution strategy and pinpointing any inefficiencies.

Plan Tab

The Plan tab provides low-level, structured details about the query execution plan as interpreted by Trino. Unlike the DAG view (which is visual), this tab reveals the actual JSON metadata behind each node in the plan.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard