Skip to content

DeltaReorgTableCommand Leaf Logical Command

DeltaReorgTableCommand is an OptimizeTableCommandBase that represents DeltaReorgTable logical operator at execution.

Creating Instance

DeltaReorgTableCommand takes the following to be created:

  • Target table (LogicalPlan)
  • DeltaReorgTableSpec
  • WHERE partition predicates

DeltaReorgTableCommand is created when:

Executing Command

RunnableCommand
run(
  sparkSession: SparkSession): Seq[Row]

run is part of the RunnableCommand (Spark SQL) abstraction.

run executes OptimizeTableCommand with no zOrderBy and the following DeltaOptimizeContext:

DeltaOptimizeContext Value
isPurge true
minFileSize 0
maxDeletedRowsRatio 0