Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.10] MOD-6532: Support indexing of missing values #4720

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

github-actions[bot]
Copy link

@github-actions github-actions bot commented Jun 7, 2024

Description

Backport of #4682 to 2.10.
CP of MOD-6534.

* MOD-6533, MOD-6581: Support MISSING indexing syntax (#4635)

* Parsing support for missing values querying (#4641)

* MOD-6534: Missing values indexing - Add support to indexing pipeline (#4638)

* Create missing index iterator for missing QueryNode (#4650)

* Patching indexing and querying pipelines together

* WIP: Adding testsMissing()

* Fix intersect problem (#4658)

* WIP: testMissing()

* WIP Add tests

* Add tests

* Test SORTABLE case

* Test Explain

* Support indexing missing values for geo, geoshape, numeric (TODO: Vector)

* Minor fixes

* Support ISMISSING in parser/v3

* Fix parseGeometryField()

* Support indexing missing values for VECTOR

* Test ismissing vector field

* Reorganize tests and test WITHSUFFIXTRIE case

* Test ft.aggregate and two ismissing fields

* JSON tests fail in cluster

* Fix IndexSpec_FreeUnlinkedData()

* IndexSpec_FreeUnlinkedData() dont delete entry

* Fix test

* Remove errors thrown for queries of non-existing fields

* Review

* Optimize missing values indexing pipeline

* Free missingFieldDict using valDestructor callback

* test_missing: Add notes to bugs unrelated to ISMISSING

* Fix JSON test

* Fix increment

* Fix missingFieldDictType

* refactor ismissing to indexmissing in index creation

* Small touchup

* Fix commands.json

* code review fixes

* Fix info test

* Check redis-py version in test_info_modules.py

* Check redis-py version for amazonlinux:2

---------

Co-authored-by: Raz Monsonego <74051729+raz-mon@users.noreply.github.com>
Co-authored-by: raz-mon <razmonsonego2@gmail.com>
Co-authored-by: Omer Shadmi <omer.shadmi@redis.com>
(cherry picked from commit 924f700)
@github-actions github-actions bot requested a review from raz-mon June 7, 2024 19:56
@GuyAv46 GuyAv46 marked this pull request as draft June 7, 2024 19:56
@GuyAv46 GuyAv46 marked this pull request as ready for review June 7, 2024 19:56
Copy link

codecov bot commented Jun 7, 2024

Codecov Report

Attention: Patch coverage is 78.02198% with 60 lines in your changes missing coverage. Please review.

Project coverage is 86.17%. Comparing base (49b556f) to head (b04f65a).

Files Patch % Lines
src/fork_gc.c 13.20% 46 Missing ⚠️
src/query_parser/v2/lexer.c 83.33% 8 Missing ⚠️
src/query_parser/v3/lexer.c 94.02% 4 Missing ⚠️
src/inverted_index.c 85.71% 1 Missing ⚠️
src/query.c 96.42% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             2.10    #4720      +/-   ##
==========================================
- Coverage   86.23%   86.17%   -0.07%     
==========================================
  Files         190      190              
  Lines       34830    35002     +172     
==========================================
+ Hits        30037    30163     +126     
- Misses       4793     4839      +46     

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

@nafraf nafraf added this pull request to the merge queue Jun 7, 2024
Merged via the queue into 2.10 with commit 770c999 Jun 7, 2024
8 of 9 checks passed
@nafraf nafraf deleted the backport-4682-to-2.10 branch June 7, 2024 21:34
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