Skip to main content
As EXPLAIN shows the execution plan of a query or job before execution, EXPLAIN ANALYZE analyzes a running stream job, including table, materialized view, sink, or index, and collects runtime statistics to help identify performance bottlenecks. EXPLAIN ANALYZE is enabled by default. To disable it, set enable_explain_analyze_stats = false under [streaming.developer].

Syntax

duration_secs specifies the profiling duration in seconds.

Metrics

When you run EXPLAIN ANALYZE, it returns a table showing runtime statistics for each operator involved in the execution.
Field nameDescription
identityThe name and hierarchical structure of the operator (e.g., StreamHashJoin, MergeExecutor.
actor_idsThe IDs of concurrent actors running this operator.
output_rpsThe number of records output per second (records per second).
avg_output_pending_ratioThe average ratio of pending outputs in the buffer, indicating how quickly downstream operators are consuming data.

Example

Sample output:
  • To check the execution plan for a new statement before it runs, see EXPLAIN.
  • To check the execution fragments of an existing streaming job, see DESCRIBE FRAGMENTS.