Skip to content

More local rel table fixes for MVCC and read-your-writes#416

Merged
adsharma merged 3 commits into
mainfrom
local_rel_table_fixes
Apr 24, 2026
Merged

More local rel table fixes for MVCC and read-your-writes#416
adsharma merged 3 commits into
mainfrom
local_rel_table_fixes

Conversation

@adsharma

Copy link
Copy Markdown
Contributor

Fixes: #378

  • Failure to propagate the flat vs factorized schema during planning stage for rel tables
  • Two localScanState management bugs.
    • reset on moving a different table
    • setToUnflat() when dealing with factorized tables

LogicalInsert and LogicalMerge were only adding inserted node
internal IDs to schema scope. Inserted relationship internal IDs
could therefore drop out of scope, which changed the planner/executor
state reaching rel insertion and caused the q2 read-your-writes
repro in the PR description to produce the wrong PO edges even
after the local storage scan fixes.

Add inserted rel internal IDs to both factorized and flat schemas
so rel insertions preserve the expected schema contract through
planning and execution.
@adsharma adsharma merged commit 9a8fbb3 into main Apr 24, 2026
4 checks passed
@adsharma adsharma deleted the local_rel_table_fixes branch April 24, 2026 05: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.

Bug: Duplicate Rel IDs

1 participant