Skip to content

feat: UPDATE non-deterministic transaction-time rewrites - #1718

Merged
jkaczman merged 1 commit into
mainfrom
jk-nd-rewrite-update
Oct 2, 2026
Merged

jkaczman merged 1 commit into
mainfrom
jk-nd-rewrite-update

Conversation

@jkaczman

@jkaczman jkaczman commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #1713 to also handle re-writing UPDATE statements when a date-time function based on the transaction start time is present. Re-uses the same transform code as SELECT.

@codecov

codecov Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 87.50000% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...r/rewrite/statement/non_deterministic_funcs/mod.rs 87.50% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

let conn = conn.get(1).unwrap();

let row_created_at_before_time: DateTime<Utc> = {
conn.execute("TRUNCATE sharded").await.unwrap();

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Don't need to address this in this PR, but we should start writing tests in such a way so we can run them in parallel. Easiest way to do this is to create dedicated fixtures for each test; our config would allow this since we shard by column, not by table and as long as the table has a sharding key, it'll work.

@jkaczman
jkaczman added this pull request to the merge queue Oct 2, 2026
Merged via the queue into main with commit bc746d1 Oct 2, 2026
44 checks passed
@jkaczman
jkaczman deleted the jk-nd-rewrite-update branch October 2, 2026 17:50
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