JanusGraph / JanusGraph/janusgraph

bothE().has(label, within([])) does not filter out edges

Open
#1,316 0 comments 0 reactions 0 assignees View on GitHub

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

On janusgraph 2.1.1
1) `g.E().has(label, within([]))` returns 0 edges as it should
2) `g.V().bothE().has(label, within([]))` returns all the edges

We expect all the edges to be filtered out in case 2 as well.
Is this a bug of janusGraph?

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 by reproducing the two queries from the issue on JanusGraph 2.1.1 and compare their results. The work is done when both g.E().has(label, within([])) and g.V().bothE().has(label, within([])) return zero edges, with a regression check for the reported traversal.

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
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.