Skip to content

Indices are always unique (unique parameter is ignored on creation) #553

@nicolaiwadstrom

Description

@nicolaiwadstrom

ArcadeDB Version: <version here, you can find it on the first line of server output>

JDK Version: Oracle "18.0.2" 2022-07-19

OS: MacOS 12.6

Expected behavior

An Index would be unique only when the boolean parameter "unique" in the function call is set to true (when creating an index.

Actual behavior

Indices on vertices and edges are always unique

Steps to reproduce

com.arcadedb.schema.VertexType vertexTypeRoot = db.getSchema().getOrCreateVertexType( "VertexType"  );
vertexTypeRoot
	.getOrCreateProperty( "_tranid_", String.class )
		.getOrCreateIndex( com.arcadedb.schema.Schema.INDEX_TYPE.LSM_TREE, false );	

Metadata

Metadata

Assignees

Labels

invalidThis doesn't seem right

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions