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:
- DeltaAnalysis logical resolution rule is executed (with a logical query plan with a DeltaReorgTable logical operator over a DeltaTableV2)
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 |