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
ApplyViewToElementsFunction corrupts matchedVertex #3052
Labels
bug
Confirmed or suspected bug
Milestone
Comments
GCHQDev404
added a commit
that referenced
this issue
Nov 2, 2023
examine https://github.com/gchq/Gaffer/tree/gh-3052-FederatedStore-Function-corrupts-matched-vertex for the test required to pass to prove/fix this. Lines 188 to 232 in 36063e2
|
GCHQDev404
added a commit
that referenced
this issue
Nov 2, 2023
GCHQDev404
added a commit
that referenced
this issue
Feb 27, 2024
Test to be fixed to resolve this ticket. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
The
ApplyViewToElementsFunction
merge function, which is the default merge function for federated stores, will corrupt the results'matchedVertex
fields.To Reproduce
Steps to reproduce the behaviour:
A --> B
A --> B
: incorrectly showsmatchedVertex = SOURCE
Expected behaviour
The resulting Edge should have
matchedVertex = DESTINATION
.Additional context
ApplyViewToElementsFunction
creates an internal MapStore to apply the view to all the results. Clearly, this is not applying thematchedVertex
field properly from the actual results.The same query works fine with the
ConcatenateMergeFunction
.This bug also breaks
GetWalks
, because it relies on thematchedVertex
field.Platform
The text was updated successfully, but these errors were encountered: