Use the EXPLAIN
command to show the execution plan of a statement, or use DESCRIBE FRAGMENTS <job_name>
to show execution fragments of an existing job.
Parameter | Description |
---|---|
statement | A statement that is executable in RisingWave. |
EXPLAIN option | See the table below. |
EXPLAIN
optionsOption | Supported values | Description |
---|---|---|
VERBOSE | [ TRUE | FALSE ] | Show additional information regarding the execution plan such as the table catalog of the state table and the schema of each operator. |
TRACE | [ TRUE | FALSE ] | Show the trace of each optimization stage, not only the final plan. |
TYPE | [ PHYSICAL | LOGICAL | DISTSQL ] | Show the execution plan of a specific phase.
|
FORMAT | [ TEXT | JSON | XML | YAML ] |
|
[ TRUE | FALSE ]
specifies whether the specified option should be enabled or disabled. Use TRUE
to enable the option, and FALSE
to disable it. It defaults to TRUE
if the parameter is not specified.SELECT
statement.
CREATE MATERIALIZED VIEW
statement.
DESCRIBE FRAGMENTS <relation_name>
,
which has a similar format like EXPLAIN (DISTSQL)
, but DESCRIBE FRAGMENTS
operates on an existing job rather than a new statement being planned.
To check the runtime performance of each operator, use EXPLAIN ANALYZE
.