Skip to content

Parameterized query plans#5261

Draft
joshua-spacetime wants to merge 2 commits into
masterfrom
joshua/query-plan-params
Draft

Parameterized query plans#5261
joshua-spacetime wants to merge 2 commits into
masterfrom
joshua/query-plan-params

Conversation

@joshua-spacetime

Copy link
Copy Markdown
Contributor

Description of Changes

Makes runtime parameters explicit in query plans (prerequisite for parameterized views).

As part of this change, sender is no longer baked directly into query plans as a literal value. Instead it's represented as a parameter in the query plan. Values are supplied at runtime via a variable environment BindEnv.

Important Notes

  • Changed subscription fragments to store physical plans instead of PipelinedProjects, because fragments may contain runtime params and must bind per subscription instance.

  • :sender can also bind as bytes to preserve legacy filters that compare sender to byte columns.

Deferred

  • Subscriptions should share parameterized plans/templates
  • Should pass BindEnv directly to the executable instead of producing an intermediate bound physical plan.

API and ABI breaking changes

N/A

Expected complexity level and risk

...

Testing

Existing coverage

@joshua-spacetime joshua-spacetime force-pushed the joshua/query-plan-params branch from 743e8c9 to b8631b8 Compare June 9, 2026 21:20
@joshua-spacetime joshua-spacetime force-pushed the joshua/query-plan-params branch from b8631b8 to c72b1a8 Compare June 9, 2026 22:05
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