Class InlineProjections

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

public class InlineProjections extends Object implements Rule<ProjectNode>
Inlines expressions from a child project node into a parent project node as long as they are simple constants, or they are referenced only once (to avoid introducing duplicate computation) and the references don't appear within a TRY block (to avoid changing semantics).