Skip to content

test: regression test for LadybugDB/ladybug#1067 ORDER BY STRING then numeric - #56

Merged
adsharma merged 1 commit into
LadybugDB:mainfrom
adsharma:fix-1067-orderby-regression
Oct 12, 2026
Merged

adsharma merged 1 commit into
LadybugDB:mainfrom
adsharma:fix-1067-orderby-regression

Conversation

@adsharma

Copy link
Copy Markdown
Contributor

Regression test for LadybugDB/ladybug#1067.

Covers the KeyBlockMerger bug where merging sorted key blocks ignored trailing keys once all STRING keys tied, misordering e.g. ORDER BY <STRING>, <numeric>. Deterministic once the sort spills to multiple key blocks (20k rows).

Companion fix: LadybugDB/ladybug#1072. Test fails before the fix (rows == sorted(rows) is False) and passes after. CI will validate.

@adsharma
adsharma force-pushed the fix-1067-orderby-regression branch from 2573fdc to 3fe5b42 Compare September 29, 2026 17:01
… numeric

Merging sorted key blocks ignored trailing keys once all STRING keys
tied, misordering the second key (deterministic with multiple key
blocks, e.g. 20k rows).
@adsharma
adsharma force-pushed the fix-1067-orderby-regression branch from 56e5884 to aa1236b Compare October 12, 2026 20:01
@adsharma
adsharma merged commit 429a9d7 into LadybugDB:main Oct 12, 2026
2 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.

1 participant