Skip to content

Cypher MERGE should use merge key with unique index #1301

@LeonardoMarrancone

Description

@LeonardoMarrancone

ArcadeDB Version:

23.10.1

OS and JDK Version:

docker image

Expected behavior

Cypher MERGE should use merge key with unique index

Actual behavior

Cypher MERGE should use merge key with unique index, please look at the steps to reproduce the problem.

Steps to reproduce

CREATE VERTEX TYPE Test;
CREATE PROPERTY Test.id STRING;
CREATE INDEX ON Test (id) UNIQUE;
CREATE (v:Test{id: 0});
UNWIND range(0, 10) AS id MERGE (v:Test{id: id}) RETURN v; // returns: Found duplicate key in index Duplicated key [0] found on index 'Test[id]' already assigned to record #1:0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions