PreprocessTableDelete Logical Resolution Rule

PreprocessTableDelete is a post-hoc logical resolution rule (Rule[LogicalPlan]) to resolve DeltaDelete logical commands in a query plan into DeleteCommands.

PreprocessTableDelete is installed (injected) into a SparkSession using DeltaSparkSessionExtension.

Creating Instance

PreprocessTableDelete takes a single SQLConf to be created.

PreprocessTableDelete is created when DeltaSparkSessionExtension is requested to register Delta SQL support.

Executing Rule

  plan: LogicalPlan): LogicalPlan

apply resolves (replaces) DeltaDelete logical commands (in a logical query plan) into corresponding DeleteCommands.

apply is part of the Spark SQL’s Rule abstraction.