Class PruneApplyCorrelation

java.lang.Object
io.trino.sql.planner.iterative.rule.PruneApplyCorrelation
All Implemented Interfaces:
Rule<ApplyNode>

public class PruneApplyCorrelation extends Object implements Rule<ApplyNode>
This rule updates ApplyNode's correlation list. A symbol can be removed from the correlation list if it is not referenced by the subquery node. Note: This rule does not restrict ApplyNode's children outputs. It requires additional information about context (symbols required by the outer plan) and is done in PruneApplyColumns rule.