Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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