Skip to content

Improve parser for intersections [MOD-9278]#5984

Merged
GuyAv46 merged 8 commits intomasterfrom
guyav-MOD-9278
Apr 23, 2025
Merged

Improve parser for intersections [MOD-9278]#5984
GuyAv46 merged 8 commits intomasterfrom
guyav-MOD-9278

Conversation

@GuyAv46
Copy link
Collaborator

@GuyAv46 GuyAv46 commented Apr 22, 2025

Describe the changes in the pull request

Improve intersection parsing (DIALECT 2 and above) so parentheses and sub-queries order won't affect text scores

Mark if applicable

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

@codecov
Copy link

codecov bot commented Apr 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.05%. Comparing base (c1a282c) to head (be44a46).
Report is 9 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5984      +/-   ##
==========================================
- Coverage   87.08%   87.05%   -0.04%     
==========================================
  Files         211      211              
  Lines       38595    38590       -5     
  Branches     1893     1893              
==========================================
- Hits        33610    33594      -16     
- Misses       4978     4989      +11     
  Partials        7        7              

☔ 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.

@GuyAv46 GuyAv46 requested a review from kei-nan April 22, 2025 09:51
kei-nan
kei-nan previously approved these changes Apr 22, 2025
@GuyAv46 GuyAv46 added this pull request to the merge queue Apr 22, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 22, 2025
@GuyAv46 GuyAv46 requested a review from kei-nan April 23, 2025 10:09
@GuyAv46 GuyAv46 added this pull request to the merge queue Apr 23, 2025
Merged via the queue into master with commit 7c195ee Apr 23, 2025
11 checks passed
@GuyAv46 GuyAv46 deleted the guyav-MOD-9278 branch April 23, 2025 14:31
@redisearch-backport-pull-request
Copy link
Contributor

Backport failed for 2.8, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin 2.8
git worktree add -d .worktree/backport-5984-to-2.8 origin/2.8
cd .worktree/backport-5984-to-2.8
git switch --create backport-5984-to-2.8
git cherry-pick -x 7c195eeb51daa5b11bfac7d0472387a6e4ddb041

@redisearch-backport-pull-request
Copy link
Contributor

Backport failed for 2.6, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin 2.6
git worktree add -d .worktree/backport-5984-to-2.6 origin/2.6
cd .worktree/backport-5984-to-2.6
git switch --create backport-5984-to-2.6
git cherry-pick -x 7c195eeb51daa5b11bfac7d0472387a6e4ddb041

@redisearch-backport-pull-request
Copy link
Contributor

Backport failed for 2.10, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin 2.10
git worktree add -d .worktree/backport-5984-to-2.10 origin/2.10
cd .worktree/backport-5984-to-2.10
git switch --create backport-5984-to-2.10
git cherry-pick -x 7c195eeb51daa5b11bfac7d0472387a6e4ddb041

@redisearch-backport-pull-request
Copy link
Contributor

Backport failed for 8.0, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin 8.0
git worktree add -d .worktree/backport-5984-to-8.0 origin/8.0
cd .worktree/backport-5984-to-8.0
git switch --create backport-5984-to-8.0
git cherry-pick -x 7c195eeb51daa5b11bfac7d0472387a6e4ddb041

GuyAv46 added a commit that referenced this pull request Apr 23, 2025
* improve intersection node parsing

* refactor `one_not_null`

* WIP test

* complete test

* reorder for a clearer diff

* review fixes

* fix spellcheck

* fix tests for dialect 2 and above

(cherry picked from commit 7c195ee)
GuyAv46 added a commit that referenced this pull request Apr 24, 2025
* improve intersection node parsing

* refactor `one_not_null`

* WIP test

* complete test

* reorder for a clearer diff

* review fixes

* fix spellcheck

* fix tests for dialect 2 and above

(cherry picked from commit 7c195ee)
GuyAv46 added a commit that referenced this pull request Apr 24, 2025
* improve intersection node parsing

* refactor `one_not_null`

* WIP test

* complete test

* reorder for a clearer diff

* review fixes

* fix spellcheck

* fix tests for dialect 2 and above

(cherry picked from commit 7c195ee)
github-merge-queue bot pushed a commit that referenced this pull request Apr 24, 2025
Improve parser for intersections [MOD-9278] (#5984)

* improve intersection node parsing

* refactor `one_not_null`

* WIP test

* complete test

* reorder for a clearer diff

* review fixes

* fix spellcheck

* fix tests for dialect 2 and above

(cherry picked from commit 7c195ee)
github-merge-queue bot pushed a commit that referenced this pull request Apr 27, 2025
* Improve parser for intersections [MOD-9278] (#5984)

* improve intersection node parsing

* refactor `one_not_null`

* WIP test

* complete test

* reorder for a clearer diff

* review fixes

* fix spellcheck

* fix tests for dialect 2 and above

(cherry picked from commit 7c195ee)

* fix config call for 2.8

* fix config command in test

* fix another test for 2.8
github-merge-queue bot pushed a commit that referenced this pull request Apr 27, 2025
* Improve parser for intersections [MOD-9278] (#5984)

* improve intersection node parsing

* refactor `one_not_null`

* WIP test

* complete test

* reorder for a clearer diff

* review fixes

* fix spellcheck

* fix tests for dialect 2 and above

(cherry picked from commit 7c195ee)

* fix config call for 2.6

* fix config command in test
JoanFM pushed a commit that referenced this pull request May 27, 2025
* improve intersection node parsing

* refactor `one_not_null`

* WIP test

* complete test

* reorder for a clearer diff

* review fixes

* fix spellcheck

* fix tests for dialect 2 and above
JoanFM pushed a commit that referenced this pull request May 27, 2025
* improve intersection node parsing

* refactor `one_not_null`

* WIP test

* complete test

* reorder for a clearer diff

* review fixes

* fix spellcheck

* fix tests for dialect 2 and above
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants