Skip to content

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

@odbuser2

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);
    }

Metadata

Metadata

Assignees

Labels

No labels
No labels

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