ExplainCommand Logical Command¶
ExplainCommand is a logical command to display logical and physical query plans with optional details about codegen and cost statistics.
ExplainCommand takes the following to be created:
ExplainCommand is created for
EXPLAIN SQL statements (when
SparkSqlAstBuilder is requested to visitExplain).
ExplainCommand uses the following output attributes:
Executing Logical Command¶
run( sparkSession: SparkSession): Seq[Row]
In case of a
run gives the following output:
Error occurred during query planning: [cause]
run is part of the RunnableCommand abstraction.