Repository navigation
Block NUMERIC field creation for disk (Flex) indexes - #10389
Merged
Merged
Conversation
The disk numeric index does not yet survive replication and hot restart (the BucketMap RAM half is not coherently snapshotted with the SpeedB disk half), so reject NUMERIC fields at FT.CREATE time on Flex indexes, the same way GEO and GEOSHAPE fields are rejected. Also drop NUMERIC from the disk-supported field types in the schema catch-all validation. Co-Authored-By: Claude Fable 5 <[email protected]>
|
JoanFM
approved these changes
Jul 7, 2026
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #10389 +/- ##
==========================================
- Coverage 81.58% 81.48% -0.10%
==========================================
Files 554 555 +1
Lines 74756 74864 +108
Branches 30047 30151 +104
==========================================
+ Hits 60991 61006 +15
- Misses 13481 13574 +93
Partials 284 284
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
raz-mon
enabled auto-merge
July 7, 2026 21:23
1 of 2 tasks
pull Bot
pushed a commit
to Mu-L/RediSearch
that referenced
this pull request
Jul 9, 2026
…rch#10389)" (RediSearch#10410) This reverts commit a266825.
1 of 4 tasks
raz-mon
added a commit
that referenced
this pull request
Jul 28, 2026
This reverts commit e0a546c (#10410), re-applying the NUMERIC block for the upcoming milestone release: the disk numeric index is not yet production-ready (replication and hot restart do not coherently snapshot the BucketMap RAM half with the SpeedB disk half), so reject NUMERIC fields at FT.CREATE time on Flex indexes, the same way GEO and GEOSHAPE fields are rejected. To be reverted again after the release tag, when numeric work resumes. Co-authored-by: Claude Fable 5 <[email protected]>
raz-mon
added a commit
that referenced
this pull request
Jul 28, 2026
This reverts commit e0a546c (#10410), re-applying the NUMERIC block for the upcoming milestone release: the disk numeric index is not yet production-ready (replication and hot restart do not coherently snapshot the BucketMap RAM half with the SpeedB disk half), so reject NUMERIC fields at FT.CREATE time on Flex indexes, the same way GEO and GEOSHAPE fields are rejected. To be reverted again after the release tag, when numeric work resumes. Co-authored-by: Claude Fable 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Describe the changes in the pull request
FT.CREATEon a disk (Flex) index accepts NUMERIC fields, but the disk numeric index does not yet survive replication and hot restart — the RAM-resident routing/split metadata (BucketMap) is not coherently snapshotted with the SpeedB disk half.NUMERIC fields are not supported in Flex indexes. NUMERIC is also removed from the disk-supported types in the schema catch-all validation.Which additional issues this PR fixes
N/A
Main objects this PR modified
parseFieldSpec(src/spec.c) — NUMERIC branch now callsSearchDisk_MarkUnsupportedFieldIfDiskEnabledIndexSpec_AddFieldsInternal(src/spec.c) — disk catch-all no longer lists NUMERIC as supportedtests/pytests/test_flex_validation.py—test_invalid_field_typecovers NUMERICMark if applicable
Release Notes
If a release note is required (bug fix / new feature / enhancement), describe the user impact of this PR in the title.
🤖 Generated with Claude Code