CloneTableStatement¶
CloneTableStatement is a BinaryNode (Spark SQL) that represents SHALLOW CLONE clause in a logical query plan.
CloneTableStatement is resolved to CreateDeltaTableCommand (using DeltaAnalysis logical resolution rule).
Creating Instance¶
CloneTableStatement takes the following to be created:
- Source table (
LogicalPlan) - Target table (
LogicalPlan) -
ifNotExistsflag -
isReplaceCommandflag -
isCreateCommandflag - Table property overrides
- Target location
CloneTableStatement is created when:
DeltaSqlAstBuilderis requested to parse SHALLOW CLONE clause