Skip to content

Unexpected exception triggered by quering "size()" in gremlin statement #912

Closed

Description

@joyemang33

ArcadeDB Version: 23.1.2

JDK Version:

OS: Linux

We execute the following gremlin query and we believe that Arcadedb should support such query as other GDBs:

Gremlin: g.inject(1).size()
==> java.lang.ClassCastException

Detail: class java.lang.Integer cannot be cast to class org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal (java.lang.Integer is in module java.base of loader 'bootstrap'; org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal is in unnamed module of loader 'app')

Would it be possible for you to support it in the future release?

Expected behavior

1 (Other GDBs return (OrientDB, TinkerGraph ...))

Actual behavior

java.lang.ClassCastException

Steps to reproduce

Activity

  1. changed the title [-]Unexpected exception triggered by quering "size()" in gremlin sentence[/-] [+]Unexpected exception triggered by quering "size()" in gremlin statement[/+] on Mar 2, 2023
  2. self-assigned this
    on Mar 2, 2023
  3. added this to the 23.3.1 milestone on Mar 2, 2023
  4. lvca commented on Mar 2, 2023

    @lvca
    Member

    Fixed in the main branch. Thanks for reporting the issue!

    This fix will be part of the next scheduled release. If you don't want to wait, you can just build an ArcadeDB distribution from the sources. It's super easy and takes 3 minutes. Check this guide: https://github.com/ArcadeData/arcadedb/blob/main/CONTRIBUTING.md#developer-guide

  5. joyemang33 commented on Mar 2, 2023

    @joyemang33
    Author

    Fixed in the main branch. Thanks for reporting the issue!

    This fix will be part of the next scheduled release. If you don't want to wait, you can just build an ArcadeDB distribution from the sources. It's super easy and takes 3 minutes. Check this guide: https://github.com/ArcadeData/arcadedb/blob/main/CONTRIBUTING.md#developer-guide

    Thanks for you reply and fixing so quickly 🥳

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