Skip to content

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:

PreprocessTableDelete is created when:

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