Skip to content

Improve Error Message on VecSim Syntax Error - [MOD-7887]#5101

Merged
GuyAv46 merged 8 commits intomasterfrom
guyav-improve_error_message_on_vecsim_syntax_error
Oct 10, 2024
Merged

Improve Error Message on VecSim Syntax Error - [MOD-7887]#5101
GuyAv46 merged 8 commits intomasterfrom
guyav-improve_error_message_on_vecsim_syntax_error

Conversation

@GuyAv46
Copy link
Collaborator

@GuyAv46 GuyAv46 commented Oct 10, 2024

Describe the changes in the pull request

  1. Postponed the field name validation after registering the score field name, to avoid a misleading error message when the field name is not a vector field.
  2. Improve error messages when failing to create a new vector field.

Mark if applicable

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

@GuyAv46 GuyAv46 enabled auto-merge October 10, 2024 07:12
@GuyAv46 GuyAv46 requested a review from meiravgri October 10, 2024 07:15
@codecov
Copy link

codecov bot commented Oct 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.29%. Comparing base (f6b7b68) to head (dc60585).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5101      +/-   ##
==========================================
- Coverage   86.31%   86.29%   -0.03%     
==========================================
  Files         190      190              
  Lines       34604    34604              
==========================================
- Hits        29870    29861       -9     
- Misses       4734     4743       +9     

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

Copy link
Collaborator

@meiravgri meiravgri left a comment

Choose a reason for hiding this comment

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

clean and simple

@GuyAv46 GuyAv46 requested a review from meiravgri October 10, 2024 10:48
@GuyAv46 GuyAv46 added this pull request to the merge queue Oct 10, 2024
Merged via the queue into master with commit 3e07eff Oct 10, 2024
@GuyAv46 GuyAv46 deleted the guyav-improve_error_message_on_vecsim_syntax_error branch October 10, 2024 12:44
Copy link
Collaborator

@alonre24 alonre24 left a comment

Choose a reason for hiding this comment

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

NICE !

@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-5101-to-2.8 origin/2.8
cd .worktree/backport-5101-to-2.8
git switch --create backport-5101-to-2.8
git cherry-pick -x 3e07eff03cdc481bf77c1d5c7725cdd10c039737

@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-5101-to-2.6 origin/2.6
cd .worktree/backport-5101-to-2.6
git switch --create backport-5101-to-2.6
git cherry-pick -x 3e07eff03cdc481bf77c1d5c7725cdd10c039737

@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-5101-to-2.10 origin/2.10
cd .worktree/backport-5101-to-2.10
git switch --create backport-5101-to-2.10
git cherry-pick -x 3e07eff03cdc481bf77c1d5c7725cdd10c039737

redisearch-backport-pull-request bot pushed a commit that referenced this pull request Oct 10, 2024
* Add a failing test

* fix bug

* revert a white-space change

* move getting the field down

* Update query.c

* improve error messages

* fix tests

* review fix

(cherry picked from commit 3e07eff)
@redisearch-backport-pull-request
Copy link
Contributor

Successfully created backport PR for 8.0:

GuyAv46 added a commit that referenced this pull request Oct 10, 2024
* Add a failing test

* fix bug

* revert a white-space change

* move getting the field down

* Update query.c

* improve error messages

* fix tests

* review fix

(cherry picked from commit 3e07eff)
GuyAv46 added a commit that referenced this pull request Oct 10, 2024
* Add a failing test

* fix bug

* revert a white-space change

* move getting the field down

* Update query.c

* improve error messages

* fix tests

* review fix

(cherry picked from commit 3e07eff)
GuyAv46 added a commit that referenced this pull request Oct 10, 2024
* Add a failing test

* fix bug

* revert a white-space change

* move getting the field down

* Update query.c

* improve error messages

* fix tests

* review fix

(cherry picked from commit 3e07eff)
github-merge-queue bot pushed a commit that referenced this pull request Oct 10, 2024
Improve Error Message on VecSim Syntax Error - [MOD-7887] (#5101)

* Add a failing test

* fix bug

* revert a white-space change

* move getting the field down

* Update query.c

* improve error messages

* fix tests

* review fix

(cherry picked from commit 3e07eff)

Co-authored-by: GuyAv46 <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Oct 11, 2024
Improve Error Message on VecSim Syntax Error - [MOD-7887] (#5101)

* Add a failing test

* fix bug

* revert a white-space change

* move getting the field down

* Update query.c

* improve error messages

* fix tests

* review fix

(cherry picked from commit 3e07eff)
github-merge-queue bot pushed a commit that referenced this pull request Oct 11, 2024
Improve Error Message on VecSim Syntax Error - [MOD-7887] (#5101)

* Add a failing test

* fix bug

* revert a white-space change

* move getting the field down

* Update query.c

* improve error messages

* fix tests

* review fix

(cherry picked from commit 3e07eff)
github-merge-queue bot pushed a commit that referenced this pull request Oct 11, 2024
Improve Error Message on VecSim Syntax Error - [MOD-7887] (#5101)

* Add a failing test

* fix bug

* revert a white-space change

* move getting the field down

* Update query.c

* improve error messages

* fix tests

* review fix

(cherry picked from commit 3e07eff)
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.

3 participants