-
-
Notifications
You must be signed in to change notification settings - Fork 60
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
SQL: "bothE" function returns number of edges instead of array of edges #1590
Comments
The problem is probably here: https://github.com/ArcadeData/arcadedb/blob/main/engine/src/main/java/com/arcadedb/graph/GraphEngine.java#L438 . |
@lvca this is weird: Changing in https://github.com/ArcadeData/arcadedb/blob/main/engine/src/main/java/com/arcadedb/graph/GraphEngine.java#L438 : return result; to:
seems to make it work, but I do not understand why, as for vertices (see |
The issue is here:
From studio if you want to see the result in a table use this With HTTP/JSON API, the recommended serializer used is "graph" that also uses this settings, so the result would still be 2. |
OK, but why do |
The reason is that |
ArcadeDB Version:
ArcadeDB Server v24.5.1-SNAPSHOT (build 7872d1acb3616c2866613dabcb7d899322bb3348/1715204385992/main)
OS and JDK Version:
Running on Mac OS X 12.7.4 - OpenJDK 64-Bit Server VM 17.0.11 (Homebrew)
Expected behavior
[{"@cat":"e","@type":"E","@rid":"#25:0","@in":"#1:0","@out":"#1:0"},{"@cat":"e","@type":"E","@rid":"#25:0","@in":"#1:0","@out":"#1:0"}]
Actual behavior
2
Steps to reproduce
The text was updated successfully, but these errors were encountered: