Skip to content

Conversation

@joshua-spacetime
Copy link
Collaborator

Description of Changes

This patch does the following:

  1. Expands views as part of query planning. Views are always assumed to be materialized by the query planner, however a view's backing table may have private columns such as the sender column. The query planner needs to filter by this column in order to select the rows pertaining to a particular caller.
  2. Plumbs AuthCtx through the query optimizer. This is needed in order to implement (1).
  3. Adds a new operator for views to the query engine that drops a view's private columns

API and ABI breaking changes

None

Expected complexity level and risk

2.5

Testing

  • SQL http tests
  • Subscription tests
  • One off query tests

@joshua-spacetime joshua-spacetime force-pushed the joshua/call-views-from-sql-execute branch 2 times, most recently from dc55340 to 4499614 Compare November 5, 2025 17:51
@joshua-spacetime joshua-spacetime changed the title Handle views in query engine and planner Add view handling to query engine and planner Nov 5, 2025
@joshua-spacetime joshua-spacetime force-pushed the joshua/call-views-from-sql-execute branch from 4499614 to c05dcdb Compare November 5, 2025 18:27
@joshua-spacetime joshua-spacetime added this pull request to the merge queue Nov 5, 2025
Merged via the queue into master with commit f5d3bcd Nov 5, 2025
22 of 24 checks passed
@joshua-spacetime joshua-spacetime deleted the joshua/call-views-from-sql-execute branch November 5, 2025 20:06
@joshua-spacetime joshua-spacetime linked an issue Nov 5, 2025 that may be closed by this pull request
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.

Make views queryable

3 participants