Skip to content

fix(cubestore): Respect nulls for unique indexes with skip#10553

Merged
ovr merged 3 commits intomasterfrom
fix/cubestore-unique-nullable-index-rebuild
Mar 25, 2026
Merged

fix(cubestore): Respect nulls for unique indexes with skip#10553
ovr merged 3 commits intomasterfrom
fix/cubestore-unique-nullable-index-rebuild

Conversation

@ovr
Copy link
Copy Markdown
Member

@ovr ovr commented Mar 25, 2026

rebuild_index() was creating index entries for all rows without checking should_index_row(), causing null entries in the unique ByExternalId index during migration. This made subsequent QUEUE ADD without EXTERNAL_ID fail with a unique constraint violation.

Also added should_index_row guard to do_insert's uniqueness check as defense in depth.

rebuild_index() was creating index entries for all rows without
checking should_index_row(), causing __null__ entries in the unique
ByExternalId index during migration. This made subsequent QUEUE ADD
without EXTERNAL_ID fail with a unique constraint violation.

Also added should_index_row guard to do_insert's uniqueness check
as defense in depth.
@ovr ovr requested a review from a team as a code owner March 25, 2026 14:52
@github-actions github-actions Bot added cube store Issues relating to Cube Store rust Pull requests that update Rust code labels Mar 25, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.74%. Comparing base (9da75cd) to head (cdd3836).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #10553   +/-   ##
=======================================
  Coverage   57.74%   57.74%           
=======================================
  Files         223      223           
  Lines       17523    17523           
  Branches     3605     3605           
=======================================
  Hits        10118    10118           
  Misses       6861     6861           
  Partials      544      544           
Flag Coverage Δ
cube-backend 57.74% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ovr ovr merged commit e27868c into master Mar 25, 2026
55 checks passed
@ovr ovr deleted the fix/cubestore-unique-nullable-index-rebuild branch March 25, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cube store Issues relating to Cube Store rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants