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
Affected feature:
Insert document with persistent index in array
AQL query (if applicable):
Sequence of 3 queries:
INSERT {"occurrences":[{"uuid":"abcd"}]} INTO inventory
// remove value from 'occurrences' array:
FOR i IN inventory
LET newo = (FOR o IN i.occurrences
FILTER o.uuid != 'abcd'
RETURN o)
UPDATE i WITH {occurrences: newo} IN inventory
// insert document with same uuid
INSERT {"occurrences":[{"uuid":"abcd"}]} INTO inventory
// Fails!
Dataset:
I can send the debug package if needed, but it's irrelevant, it is easy to reproduce with a new database (see below)
Size of your Dataset on disk:
?
Steps to reproduce
Create a database with one collection "inventory"
Create a persistent index over "occurrences[*].uuid", unique and sparse
Execute the three queries in sequence
Problem:
The re-insertion of the document with the same uuid that was used before, fails with error, although it has been removed
com.arangodb.ArangoDBException: Response: 404, Error: 1202 - NotFound: - in index uuid of type hash over 'occurrences[*].uuid'
Expected result:
The document should be inserted because the uuid value is no longer in use. It looks like the uuid value is not removed from the index, despite that it has been removed from the document.
The text was updated successfully, but these errors were encountered:
My Environment
Component, Query & Data
Affected feature:
Insert document with persistent index in array
AQL query (if applicable):
Sequence of 3 queries:
Dataset:
I can send the debug package if needed, but it's irrelevant, it is easy to reproduce with a new database (see below)
Size of your Dataset on disk:
?
Steps to reproduce
Problem:
The re-insertion of the document with the same uuid that was used before, fails with error, although it has been removed
com.arangodb.ArangoDBException: Response: 404, Error: 1202 - NotFound: - in index uuid of type hash over 'occurrences[*].uuid'
Expected result:
The document should be inserted because the uuid value is no longer in use. It looks like the uuid value is not removed from the index, despite that it has been removed from the document.
The text was updated successfully, but these errors were encountered: