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

Query for edge property returns BAD_TYPE #4812

Closed
cdalexndr opened this issue Oct 31, 2022 · 1 comment
Closed

Query for edge property returns BAD_TYPE #4812

cdalexndr opened this issue Oct 31, 2022 · 1 comment

Comments

@cdalexndr
Copy link

cdalexndr commented Oct 31, 2022

Please check the FAQ documentation before raising an issue

Describe the bug (required)

describe edge has

Field Type Null Default Comment
id int64 YES EMPTY EMPTY

Query for all properties works:

MATCH (s:category)-[e:has]-(t:product) where id(s) == 'category594997595' and id(t) == 'product495966995' RETURN e
[:has "product495966995"->"category594997595" @0 {id: -1963010408}]
^ id is -1963010408

Query for only id, returns BAD_TYPE:

MATCH (s:category)-[e:has]-(t:product) where id(s) == 'category594997595' and id(t) == 'product495966995' RETURN e.has.id

e.has.id
BAD_TYPE

Your Environments (required)

  • OS: uname -a docker for windows, nebula-graph 3.2.1
  • Compiler: g++ --version or clang++ --version
  • CPU: lscpu
  • Commit id (e.g. a3ffc7d8)

How To Reproduce(required)

Steps to reproduce the behavior:

  1. Step 1
  2. Step 2
  3. Step 3

Expected behavior

Return -1963010408, value of id property of edge

Additional context

@cdalexndr cdalexndr added the type/bug Type: something is unexpected label Oct 31, 2022
@cdalexndr cdalexndr changed the title Query for property returns BAD_TYPE Query for edge property returns BAD_TYPE Oct 31, 2022
@jievince
Copy link
Contributor

jievince commented Nov 1, 2022

For edge, you should return e.id, not e.has.id, which is different from vertex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants