JanusGraph / JanusGraph/janusgraph
Incorrect result when sorting vertices or edges with property
Open
Nobody has claimed this yet.
kind/bug/possible
- Dominant language
- Java
- Stars
- 5.8k
- Forks
- 1.2k
- Avg merge
- 13h 53m
- Merged PRs (30d)
- 6
Description
- Version: 0.6.2
- Storage Backend: inmemory
- Mixed Index Backend: lucene
- Link to discussed bug: (https://github.com/JanusGraph/janusgraph/issues/3216)
- Steps to Reproduce:
Stack Trace (if you have one)
Vertex v1 = g.addV("vl0").property("vp0", "Bob").next(); // id: 4201
Vertex v2 = g.addV("vl0").property("vp1", "Alice").next(); // id: 4200
When we execute the query g.V(4200, 4201).order().by('vp0'), JanusGraph returns these two vertices.
However, we expect only vertex v1 is returned.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Reproduce the query with the in-memory storage backend and Lucene mixed index using the two vertices and their properties, then trace the vertex-ordering path. Done means the query returns only v1 when ordering g.V(4200, 4201) by vp0.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100