Skip to content

sort: preserve 64-bit values and detect temporary-file I/O errors - #2611

Merged
pd3 merged 2 commits into
developfrom
sort-big-coords.bt-2043
Oct 29, 2026
Merged

pd3 merged 2 commits into
developfrom
sort-big-coords.bt-2043

Conversation

@pd3

@pd3 pd3 commented Oct 25, 2026

Copy link
Copy Markdown
Member

Fixes assertion failures and coordinate truncation when sorting VCF records with positions beyond the signed 32-bit range.

Also fixes detection of temporary-file read/write errors

Resolves #2043

@pd3
pd3 requested a review from daviesrob October 25, 2026 11:05
@daviesrob

Copy link
Copy Markdown
Member

This looks OK, and works in my testing. There was a small time penalty of about 3.5% compared to the original code when I forced it to do lots of partial merges by giving it a very small memory buffer. The output was identical though, and there's no difference in time if it doesn't have to do any intermediate merges.

@pd3
pd3 merged commit 18600ce into develop Oct 29, 2026
32 checks passed
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.

bcftools sort assertion failed

2 participants