Skip to content

SchemaException thrown when using hasLabel when Type does not exist #193

Closed

Description

@odbuser2

ArcadeDB Version: 21.10.2

JDK Version: any

OS: any

Expected behavior

If Vertex Type doesn't exist, don't throw an exception while querying:

graph.traversal().V().hasLabel("Car").forEachRemaining(System.out::println);
Should not print anything if Car does not exist as a Vertex Type. This is also true of Edge Types.

Actual behavior

graph.traversal().V().hasLabel("Car").forEachRemaining(System.out::println);
throws com.arcadedb.exception.SchemaException: Type with name 'Car' was not found

Steps to reproduce

    @Test public void labelExists() {
        graph.traversal().V().hasLabel("Car").forEachRemaining(System.out::println);
    }

Activity

  1. self-assigned this
    on Nov 4, 2021
  2. added this to the 21.11.1 milestone on Nov 4, 2021
  3. lvca commented on Nov 4, 2021

    @lvca
    Member

    I agree and reproduced, thanks for the test case.

  4. lvca commented on Nov 4, 2021

    @lvca
    Member

    Fix done, waiting for CI.

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