PreprocessTableDelete Logical Resolution Rule¶
PreprocessTableDelete
is a post-hoc logical resolution rule (Rule[LogicalPlan]
) to resolve DeltaDelete commands in a logical query plan into DeleteCommands.
PreprocessTableDelete
is installed (injected) into a SparkSession
using DeltaSparkSessionExtension.
Creating Instance¶
PreprocessTableDelete
takes the following to be created:
-
SQLConf
(Spark SQL)
PreprocessTableDelete
is created when:
- DeltaSparkSessionExtension is executed (and registers Delta SQL support)
Executing Rule¶
apply(
plan: LogicalPlan): LogicalPlan
apply
is part of the Rule
(Spark SQL) abstraction.
apply resolves (replaces) DeltaDelete logical commands (in a logical query plan) into DeleteCommands.
toCommand¶
toCommand(
d: DeltaDelete): DeleteCommand
toCommand
...FIXME