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

Vectorize update validation #542

Merged
merged 16 commits into from
Sep 26, 2023
Merged

Conversation

maheshrajamani
Copy link
Contributor

@maheshrajamani maheshrajamani commented Sep 26, 2023

What this PR does:
Following validation of update has been done.

  1. Error if both $vector and $vectorize used in the update clause
  2. If update clause has only $vector field and saved document has $vectorize field too, remove the $vectorize field from the document.

Which issue(s) this PR fixes:
Fixes #533 and #532

Checklist

  • Changes manually tested
  • Automated Tests added/updated
  • Documentation added/updated
  • CLA Signed: DataStax CLA

@maheshrajamani maheshrajamani requested a review from a team as a code owner September 26, 2023 15:11
@maheshrajamani maheshrajamani self-assigned this Sep 26, 2023
Copy link
Contributor

@tatu-at-datastax tatu-at-datastax left a comment

Choose a reason for hiding this comment

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

LGTM: added minor suggestions.

@maheshrajamani maheshrajamani merged commit 7401189 into main Sep 26, 2023
3 checks passed
@maheshrajamani maheshrajamani deleted the vectorize-update-validation branch September 26, 2023 21:02
Copy link
Collaborator

@vkarpov15 vkarpov15 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

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.

[Vectorize] Add validation for update clause
3 participants