Skip to content

Gremlin Traversal Bulk addV() returns only last added vertex and .iterate() is always empty #1300

@dijef

Description

@dijef

ArcadeDB Version:

ArcadeDB Server v23.10.1 (build 237a95c/1698808521864/main)

OS and JDK Version:

Windows 10 10.0 - OpenJDK 64-Bit Server VM 17.0.8 (Temurin-17.0.8+7)

Expected behavior

Each added vertex is returned by toList(), toStream(), iterate()

Actual behavior

toList() returns only last added Vertex
toStream() returns only last added Vertex
iterate().hasNext() is always false, however it executes and adds vertices

Steps to reproduce

gts.clone().V().hasLabel("inputstructure").toList().stream().forEach(v -> System.out.println(v.id().toString()));
System.out.println();
var vertices = t.addV("inputstructure").property("somep", "<value>").addV("inputstructure").property("somep", "<value>").toStream();
vertices.forEach(v -> {
  System.out.println(v.id().toString());
});
System.out.println();
gts.clone().V().hasLabel("inputstructure").toList().stream().forEach(v -> System.out.println(v.id().toString()));
System.out.println();

This prints


#28:0

#25:0
#28:0

But should print


#25:0
#28:0

#25:0
#28:0

Metadata

Metadata

Assignees

Labels

invalidThis doesn't seem rightwontfixThis will not be worked on

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