Skip to content

[8.8-rse] Block NUMERIC field creation for disk (Flex) indexes - #10631

Merged
raz-mon merged 1 commit into
8.8-rsefrom
block-numeric-flex-release
Jul 28, 2026
Merged

raz-mon merged 1 commit into
8.8-rsefrom
block-numeric-flex-release

Conversation

@raz-mon

@raz-mon raz-mon commented Jul 28, 2026 •

Copy link
Copy Markdown
Collaborator

Describe the changes in the pull request

  1. Current: on the 8.8-rse release line, NUMERIC fields are accepted at FT.CREATE time on Flex (disk) indexes (Block NUMERIC field creation for disk (Flex) indexes #10389 was reverted by Revert "Block NUMERIC field creation for disk (Flex) indexes (#10389)" #10410 before the branch point), but the disk numeric index is not production-ready — replication and hot restart do not coherently snapshot the BucketMap RAM half together with the SpeedB disk half.
  2. Change: Re-applies Block NUMERIC field creation for disk (Flex) indexes #10389 on 8.8-rse: NUMERIC fields are rejected at FT.CREATE time on Flex indexes ("NUMERIC fields are not supported in Flex indexes"), the same way GEO and GEOSHAPE fields are rejected, and NUMERIC is dropped from the disk-supported field types in the schema catch-all validation. RAM (non-Flex) indexes are unaffected.
  3. Outcome: a Flex index cannot be created with a NUMERIC field in the 8.8 release. Master is intentionally NOT blocked — numeric work continues there.

Enterprise counterpart: redislabsdev/RediSearchDisk#688 (targets enterprise 8.8; its gitlink consumes this change via redislabsdev/RediSearch 8.8-rse, so this PR should be synced into the private fork after merging).

Which additional issues this PR fixes

  1. N/A

Main objects this PR modified

  1. parseFieldSpec / IndexSpec_AddFieldsInternal (src/spec.c) — NUMERIC rejection on Flex
  2. tests/pytests/test_flex_validation.py — rejection assertion

Mark if applicable

  • This PR introduces API changes
  • This PR introduces serialization changes

Release Notes

  • This PR requires release notes
  • This PR does not require release notes

🤖 Generated with Claude Code

@raz-mon
raz-mon force-pushed the block-numeric-flex-release branch from d45b825 to 662ed65 Compare July 28, 2026 03:17
@codecov

codecov Bot commented Jul 28, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (8.8-rse@05e3d90). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/spec.c 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             8.8-rse   #10631   +/-   ##
==========================================
  Coverage           ?   81.11%           
==========================================
  Files              ?      561           
  Lines              ?    75488           
  Branches           ?    30429           
==========================================
  Hits               ?    61234           
  Misses             ?    13968           
  Partials           ?      286           
Flag Coverage Δ
flow 82.65% <66.66%> (?)
unit 52.31% <66.66%> (?)

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

☔ View full report in Codecov by Harness.
📢 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.

@raz-mon
raz-mon requested review from JoanFM, alonre24 and kei-nan and removed request for JoanFM, alonre24 and kei-nan July 28, 2026 04:04
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
raz-mon changed the base branch from master to 8.8-rse July 28, 2026 04:10
@raz-mon
raz-mon force-pushed the block-numeric-flex-release branch from 662ed65 to 805f2ce Compare July 28, 2026 04:10
@raz-mon raz-mon changed the title Reapply "Block NUMERIC field creation for disk (Flex) indexes" (#10389) [8.8-rse] Block NUMERIC field creation for disk (Flex) indexes Jul 28, 2026
@raz-mon

raz-mon commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator Author

Closing: the block is needed on the private fork's 8.8-rse instead (enterprise 8.8 consumes redislabsdev/RediSearch 8.8-rse). Superseded by the private-fork PR.

@raz-mon raz-mon closed this Jul 28, 2026
@raz-mon
raz-mon deleted the block-numeric-flex-release branch July 28, 2026 04:47
@raz-mon
raz-mon restored the block-numeric-flex-release branch July 28, 2026 08:11
@raz-mon raz-mon reopened this Jul 28, 2026
@raz-mon
raz-mon requested review from JoanFM, alonre24 and oshadmi July 28, 2026 08:13
@sonarqubecloud

Copy link
Copy Markdown

Comment thread src/spec.c
if (!FIELD_IS(fs, INDEXFLD_T_FULLTEXT) && !FIELD_IS(fs, INDEXFLD_T_VECTOR) && !FIELD_IS(fs, INDEXFLD_T_TAG) && !FIELD_IS(fs, INDEXFLD_T_NUMERIC)) {
QueryError_SetWithoutUserDataFmt(status, QUERY_ERROR_CODE_INVAL, "Disk index does not support non-TEXT/VECTOR/TAG/NUMERIC fields");
if (!FIELD_IS(fs, INDEXFLD_T_FULLTEXT) && !FIELD_IS(fs, INDEXFLD_T_VECTOR) && !FIELD_IS(fs, INDEXFLD_T_TAG)) {
QueryError_SetWithoutUserDataFmt(status, QUERY_ERROR_CODE_INVAL, "Disk index does not support non-TEXT/VECTOR/TAG fields");

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not being tested or not reachable?
Can be cleaned up in another PR

@raz-mon
raz-mon added this pull request to the merge queue Jul 28, 2026
Merged via the queue into 8.8-rse with commit 69e1785 Jul 28, 2026
101 of 105 checks passed
@raz-mon
raz-mon deleted the block-numeric-flex-release branch July 28, 2026 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants