You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
amorton
changed the title
[Tables] deleteOne zaps multiple rows if passing inequality on clustering column
[Tables] deleteOne deletes multiple rows if passing inequality on clustering column
Dec 11, 2024
This one has been fixed,
now in order to avoid impacting multiple rows for deleteOne and updateOne commands, we set the $eq as a restriction in filter.
{
"errors": [
{
"message": "The Filtering using the non `$eq` filter operations can select more than one row, and so cannot be used with the `updateOne` and `deleteOne` commands as they can only modify one row.\n\nThe command used an invalid filter on the columns: b.\n\nResend the command only using `$eq` filters.",
"scope": "FILTER",
"errorCode": "UNSUPPORTED_FILTER_FOR_UPDATE_ONE_DELETE_ONE",
"id": "583dd66e-be6b-496a-8de3-c4194344c7c8",
"family": "REQUEST",
"title": "updateOne and deleteOne commands only support filtering using $eq"
}
]
}
Table:
Before deleteOne:
deleteOne:
After deleteOne:
Suggestion: restrict the filters to prevent any kind of condition that is not an equality on the whole primary key.
The text was updated successfully, but these errors were encountered: