Database Kernel (2): From Syntax Tree to Plan Tree — Filter Pushdown and Join Ordering

Bind produces scopes and expressions; execution needs a plan tree. The conversion in between decides whether a query merely runs or runs fast. This is part two of the plan series: how the plan tree is built, and the two optimizations that matter most. 1. The minimal plan node type LogicalOperator struct { Typ LOT // scan / filter / project / join / agg / order / limit Children []*LogicalOperator // node-specific extra fields } Generation follows the bind order: ...

October 22, 2026 · 3 min · daviszhen