alibaba / alibaba/GraphScope

[BUG] unexpected result parsing in GOpt

Open
#3,991 1 comment 0 reactions 1 assignee Claimed by @shirly121 View on GitHub
stale
Dominant language
C++
Stars
3.6k
Forks
468
Avg merge
29m
Merged PRs (30d)
1

Description

**Describe the bug**
A clear and concise description of what the bug is.

Run the query on modern graph, and the result is not as expected, seems due to a wrong deduced type:
```
gremlin> g.V().hasLabel("person").both("1..3","knows").with('RESULT_OPT', 'ALL_V').elementMap("age")
cannot parse label value=29 from expected type=[VertexLabel(software), VertexLabel(person)], expected ids are [1, 0]
Type ':help' or ':h' for help.
```
In this case, the results contains value of "age" as 29, while, somehow, the result parser regard this as a VertexLabel, and try to convert 29 back to the label, which then throws out the error.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.