Skip to content

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)
  • ifNotExists flag
  • isReplaceCommand flag
  • isCreateCommand flag
  • Table property overrides
  • Target location

CloneTableStatement is created when: