EXPLAIN Syntax
-
PHYSICAL- (default) outputs the physical execution plan with the following endpoint-level details per step:ID- execution step numberENDPOINT- name of native API endpoint calledINPUT_TABLES- input tables used by the endpoint (if any)OUTPUT_TABLE- output table created by the endpoint (if any)DEPENDENCIES- list of prior execution steps upon which this step depends
-
ANALYZE- same asPHYSICAL, including additional run-time details:RUN_TIME- execution time of each endpoint callRESULT_ROWS- number of records produced in the endpoint call
-
VERBOSE- same asPHYSICAL, including endpoint parameter details:COLUMNS- columns passed to the endpoint callEXPRESSIONS- expressions passed to the endpoint callOPTIONS- option keys & values passed to the endpoint callLAST_USE_TABLES- list of tables that will not be used by any following execution stepADDITIONAL_INFO- other parameters passed to the endpoint call
-
VERBOSE ANALYZE- same asVERBOSE&ANALYZEtogether, including the execution plan for any joins contained within the query -
FORMAT JSON- outputs the result in JSON format -
FORMAT TABLE- (default) outputs the result in tabular format
Specifying
ANALYZE will cause the statement to be executed
in order to collect run-time statistics on the endpoint calls made.EXPLAIN Example
EXPLAIN Output
EXPLAIN with Detail Example
with Detail Output