Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SchemaException thrown when using hasLabel() as edge filter and the label doesn't exist #1594

Closed
marco-brandizi opened this issue May 11, 2024 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@marco-brandizi
Copy link

marco-brandizi commented May 11, 2024

ArcadeDB Version:

24.4.1

OS and JDK Version:

  • Java: OpenJDK 64-Bit Server VM Temurin-17.0.8+7 (build 17.0.8+7, mixed mode, sharing)

  • OS: Linux NAME = "Rocky Linux 8.7"

Expected behavior

I still see #193: In Gremlin, when using hasLabel() with a non existing parameter value, an empty result is expected. This should return nulls:

g.V().hasLabel ( 'foo-label' ).count ()
g.E().hasLabel ( 'foo-label' ).count ()

Actual behavior

Both the queries above (when executed against a DB without that label) return something like:

com.arcadedb.exception.SchemaException: Type with name 'is_a_1' was not found

This happens both when using the Studio and the Java driver. Interestengly, without the .count() step, it silently returns the expected empty results.

Steps to reproduce

See above.

@lvca lvca self-assigned this May 11, 2024
@lvca lvca added the bug Something isn't working label May 11, 2024
@lvca lvca added this to the 24.5.1 milestone May 11, 2024
lvca added a commit that referenced this issue May 11, 2024
@lvca
Copy link
Contributor

lvca commented May 11, 2024

Thanks for the report, the issue is fixed now in the latest 24.5.1-SNAPSHOT.

@lvca lvca closed this as completed May 11, 2024
lvca added a commit that referenced this issue May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants