Skip to content

Insert splits not behaving properly#1178

Draft
sgrif wants to merge 1 commit into
mainfrom
sg-insert-split-is-broken
Draft

Insert splits not behaving properly#1178
sgrif wants to merge 1 commit into
mainfrom
sg-insert-split-is-broken

Conversation

@sgrif

@sgrif sgrif commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

When split_inserts = "error" is set, we're just ignoring that and
incorrectly sending all rows to all shards.

When a cross-shard insert is split, we are incorrectly sending the type
information for all binds in the original query in the Parse for message
for each row

The split inserts do not behave transactionally, resulting in a partial
insert if one of the rows fails

@sgrif sgrif changed the title Sg insert split is broken Insert splits not behaving properly Jul 10, 2026
@sgrif sgrif force-pushed the sg-insert-split-is-broken branch from 3c7b64e to 50e20ae Compare July 10, 2026 20:10
When `split_inserts = "error"` is set, we're just ignoring that and
incorrectly sending all rows to all shards.

When a cross-shard insert is split, we are incorrectly sending the type
information for all binds in the original query in the Parse for message
for each row

The split inserts do not behave transactionally, resulting in a partial
insert if one of the rows fails
@sgrif sgrif force-pushed the sg-insert-split-is-broken branch from 50e20ae to 87716ad Compare July 10, 2026 20:10
@codecov

codecov Bot commented Jul 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

1 participant