Skip to content

Gremlin api "hasLabel" after "has" returns unexpected result #500

@choeoe

Description

@choeoe

ArcadeDB Version: 22.8.1

JDK Version: jdk11

OS: windows wsl ubuntu1804

  • the query is
g.V().has('vl1','vp1',lt(2)).hasLabel('vl1','vl2','vl3').count()

Expected behavior

1

Actual behavior

3

Steps to reproduce

Cluster cluster=Cluster.open("/arcade.yaml");
Client client=cluster.connect();
client.submit("g.addV('vl1').property('vp1',1)");
client.submit("g.addV('vl2').property('vp1',1)"));
client.submit("g.addV('vl3').property('vp1',1)");
List<Result> results=client.submit("g.V().has('vl1','vp1',lt(2)).hasLabel('vl1','vl2','vl3').count()").all().get();
  • the same query run in TinkerPop returns 1

arcade.yaml.zip

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions