JanusGraph / JanusGraph/janusgraph

HasId query returns nothing when nested

Open
#3,057 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/bug/confirmed
Dominant language
Java
Stars
5.8k
Forks
1.2k
Avg merge
13h 53m
Merged PRs (30d)
6

Description

This is another bug I found when fixing this issue. What happens is when you have a hasId query nested in an Or clause, the hasId query always returns empty result. I can reproduce the bug on the master branch. Since this is an unrelated bug, I'd like to create a new issue for it.

Originally posted by @li-boxuan in https://github.com/JanusGraph/janusgraph/pull/3055#discussion_r881078165

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start on the master branch and reproduce the failure with a hasId query nested inside an Or clause. Trace the query path responsible for that combination and determine why it produces an empty result. Done means the nested query returns the expected results and the regression is covered by a test.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.