Skip to content

Conversation

@Shubham8287
Copy link
Contributor

@Shubham8287 Shubham8287 commented Nov 10, 2025

Description of Changes

This patch tests calling, updating, and materialization of views through the SQL api.

API and ABI breaking changes

None

Expected complexity level and risk

1.5

Testing

Smoketests

@joshua-spacetime joshua-spacetime mentioned this pull request Nov 10, 2025
1 task
@joshua-spacetime joshua-spacetime changed the title VIews: sql smoketest view smoketests Nov 11, 2025
@joshua-spacetime joshua-spacetime changed the base branch from master to joshua/update-views November 11, 2025 00:42
github-merge-queue bot pushed a commit that referenced this pull request Nov 11, 2025
# Description of Changes

Updates views atomically on commit, but before downgrading to a
read-only transaction for subscription evaluation.

What this patch does:
1. Renames `ViewId` to `ViewFnPtr`
2. Renames `ViewDatabaseId` to `ViewId`
3. Removes the `module_rx` module watcher from the subscription manager
4. Refactors read sets to only track table scans (index key tracking
will be added later)
5. Drops read sets and removes rows from `st_view_sub` when dropping a
view in an auto-migrate
6. Re-evaluates and updates views (`call_views_with_tx`) from
`call_reducer_with_tx` for any view whose read set overlaps with the
reducer's write set
7. Does the same for sql dml

# API and ABI breaking changes

None

# Expected complexity level and risk

3

It's a bit of a messy diff.

# Testing

- [x] Integrate with
#3616

---------

Signed-off-by: joshua-spacetime <josh@clockworklabs.io>
Co-authored-by: Shubham Mishra <shivam828787@gmail.com>
Base automatically changed from joshua/update-views to master November 11, 2025 05:16
@joshua-spacetime joshua-spacetime changed the title view smoketests SQL smoketests for views Nov 11, 2025
@joshua-spacetime joshua-spacetime linked an issue Nov 11, 2025 that may be closed by this pull request
@joshua-spacetime joshua-spacetime added this pull request to the merge queue Nov 11, 2025
Merged via the queue into master with commit c2db64d Nov 11, 2025
33 of 37 checks passed
@Shubham8287 Shubham8287 deleted the shub/view-sql-smoketest branch November 12, 2025 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make views queryable

4 participants