Skip to content

Keep SQLite aggregate membership and results in the same snapshot (#220) - #328

Merged
jmmana merged 1 commit into
mainfrom
fix/220-sqlite-cohort-snapshot
Dec 3, 2026
Merged

jmmana merged 1 commit into
mainfrom
fix/220-sqlite-cohort-snapshot

Conversation

@jmmana

@jmmana jmmana commented Dec 3, 2026

Copy link
Copy Markdown
Owner

Refs #220. Builds on #326.

Open a driver-level SQLite read transaction for cohort-protected aggregates when the driver has not opened one. SQLAlchemy's logical transaction alone does not start SQLite transactions for reads in legacy mode. Keep the existing snapshot through both reads.

A SQLite WAL concurrency regression test confirms the two reads see the same snapshot. The regression failed on the previous revision and passes with the fix. Ruff, mypy, and 135 targeted tests passed locally.

Copilot AI balanced review requested due to automatic review settings December 3, 2026 23:29

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@jmmana
jmmana merged commit dae9f27 into main Dec 3, 2026
30 checks passed
@jmmana
jmmana deleted the fix/220-sqlite-cohort-snapshot branch December 3, 2026 23:39
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.

2 participants