Class RemoveEmptyDeleteRuleSet

java.lang.Object
io.trino.sql.planner.iterative.rule.RemoveEmptyDeleteRuleSet

public final class RemoveEmptyDeleteRuleSet extends Object
If the predicate for a delete is optimized to false, the target table scan of the delete will be replaced with an empty values node. This type of plan cannot be executed and is meaningless anyway, so we replace the entire thing with a values node.

Transforms

  - TableFinish
    - Exchange (optional)
      - Delete
        - empty Values
 
into
  - Values (0)
 
  • Method Details

    • rules

      public static Set<Rule<?>> rules()