alibaba / alibaba/GraphScope

Return the original vertex(edge) id during gremlin query

Open
#1,467 8 comments 0 reactions 1 assignee Claimed by @longbinlai View on GitHub
component:gie priority:high
Dominant language
C++
Stars
3.6k
Forks
468
Avg merge
29m
Merged PRs (30d)
1

Description

**Is your feature request related to a problem? Please describe.**

From the results of Gremlin query, it seems that the `internal ID` is returned, which is very confusing for users because cannot correspond to the original data.

```python
# case 1
>>> client.submit("g.V()").all().result()
[v[0.-9223372036854774811],
v[0.-9223372036854774810],
v[0.-9223372036854774809],
...]

# case2
>>> client.submit("g.V(1)").all().result()
[v[0.1]]

# case3
>>> client.submit("g.V(1).bothE()").all().result()
[e[-9223372036854756121][0.-9223372036854754957-e0->0.1],
e[73273][0.1-e0->0.-9223372036854760078],
e[73276][0.1-e0->0.-9223372036854758343],
e[73278][0.1-e0->0.-9223372036854758342]]
```

**Describe the solution you'd like**
Return original vertex(edge) id during gremlin query

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.