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

Gh-537 document accumulo MatchedVertex edge case #538

Open
wants to merge 2 commits into
base: v2docs
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 64 additions & 1 deletion docs/administration-guide/gaffer-stores/accumulo-store.md
Original file line number Diff line number Diff line change
Expand Up @@ -326,4 +326,67 @@ If you have the accumulo cluster shell running, you can set these scan auths dir

```sh
setauths -u root -s vis1,vis2,publicVisibility,privateVisibility,public,private
```
```

#### Unexpected MatchedVertex on Edges

You may notice that sometimes `MatchedVertex` is included on edges when you might not be expecting it.
When you seed with a mixture of EdgeSeeds and EntitySeeds, `MatchedVertex` will always be included on edges whether they were matched by a vertex or not. In this case `MatchedVertex` will always equal `SOURCE`.
This is a peculiarity of the Accumulo store.

!!! example "Example Query"
``` mermaid
graph TD
1 --> 2
2 --> 3
3 --> 4
```

=== "JSON"
```json
{
"class": "GetElements",
"input": [
{
"class": "EdgeSeed",
"source": "1",
"destination": "2"
},
{
"class": "EntitySeed",
"vertex": "4"
},
],
"view": {
"allEdges": true
}
}
```

Results:

=== "JSON"
```json
[
{
"class": "uk.gov.gchq.gaffer.data.element.Edge",
"group": "example",
"source": "3",
"destination": "4",
"directed": true,
"matchedVertex": "DESTINATION",
"properties": {}
},
{
"class": "uk.gov.gchq.gaffer.data.element.Edge",
"group": "example",
"source": "1",
"destination": "2",
"directed": true,
"matchedVertex": "SOURCE",
"properties": {}
}
]
```
The 1 -> 2 edge has MatchedVertex=SOURCE even though the source wasn't matched by an EntitySeed.