In a completely empty arangodb instance (3.7.9), I first create the empty collection: temp
.
Then, I run two queries:
INSERT {v:[1]} INTO temp
and
FOR doc IN temp
RETURN REPLACE_NTH(doc.v, 0, 0, 0)
The first query, creates a single entry in temp. The second query, should return [1]. However, instead I get the error:
Query: Expecting Array slice (while executing) (exception location: /work/ArangoDB/arangod/RestHandler/RestCursorHandler.cpp:320). Please report this error to arangodb.com
Is there a reason why this is happening?
This bug was fixed in v3.7.10, see https://github.com/arangodb/arangodb/issues/13632