ShowCreateTable Logical Command¶
ShowCreateTable is a UnaryCommand that represents SHOW CREATE TABLE SQL statement in a logical query plan.
ShowCreateTable is planned as ShowCreateTableExec physical command at execution.
ShowCreateTable takes the following to be created:
- Child LogicalPlan
- Output Attributes
ShowCreateTable is created when:
AstBuilderis requested to parse SHOW CREATE TABLE SQL statement
The child (that is initially a UnresolvedTableOrView) of
ShowCreateTable is resolved using ResolveSessionCatalog logical analysis rule.
| || ||Only when asSerde is used ( |
| ||ShowCreateTableCommand||Only with spark.sql.legacy.useV1Command enabled|
|ResolvedTable||ShowCreateTableCommand||Only for |
ShowCreateTable (over a ResolvedTable) is planned as ShowCreateTableExec physical command using DataSourceV2Strategy execution planning strategy.