Skip to main content

Syntax

Parameters

EXPLAIN options

The boolean parameter [ 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.

Examples

The following statement shows the execution plan of a SELECT statement.
The execution plan looks like this:
The following statement shows the execution plan of a CREATE MATERIALIZED VIEW statement.
The execution plan of the statement above looks like this:
To check the execution fragments of an existing job, you can use 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.