EXPLAIN_JSON

functionsupportedQueries & DML

docs.snowflake.com ↗

System functions

This function converts an EXPLAIN plan from JSON to a table. The output is the same as the output of the command EXPLAIN USING TABULAR <statement>.

Syntax

EXPLAIN_JSON( <explain_output_in_json_format> )

Parameters

NameRequiredDescription
explain_output_in_json_formatrequiredA string, or an expression that evaluates to a string, containing EXPLAIN output as a JSON-compatible string. Typically, this input is the output of the function SYSTEM$EXPLAIN_PLAN_JSON. If a literal string is used, it should be surrounded by single quote characters '.

Returns

The function returns a table containing the EXPLAIN output as an ordered set of rows. The output of this function is equivalent to the output of EXPLAIN USING TABULAR <sql_statement>.

Usage notes

See also

Referenced by