Skip to content

Add a pushdown toggle, and name each operator in the plan JSON - #7

Merged
SpookyJumpyBeans merged 1 commit into
mainfrom
feature/no-pushdown
Oct 4, 2026
Merged

SpookyJumpyBeans merged 1 commit into
mainfrom
feature/no-pushdown

Conversation

@SpookyJumpyBeans

Copy link
Copy Markdown
Owner

Groundwork for the browser demo's plan view, which needs to flip pushdown on and off and style nodes by operator.

  • --no-pushdown / pushdown=False keeps every WHERE predicate in a single Filter above the joins. The cost model then also sees each table unfiltered, since it has no filtered counts to order joins by.
  • --analyze --json now includes "operator" (the class name) on every node.

Tests cover filter placement with pushdown off, identical results either way, the join receiving more rows without pushdown, and the CLI flag.

--no-pushdown (pushdown=False in the engine) keeps every WHERE predicate
in one Filter above the joins. The cost model then sees each table at
full size too, which is the honest comparison: without pushdown the
planner has no filtered row counts to order joins by.

PlanStats now records the operator class, so a frontend can style a node
by type without parsing labels like "Reorder to declared column order".
@SpookyJumpyBeans
SpookyJumpyBeans merged commit fd7313e into main Oct 4, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant