Draft
Conversation
Closed
MapEntry does not support IMeta or IObj so we cannot attach metadata to them.
Sometimes a single supplied pattern is parsed into multiple patterns for execution.
Also, make sure to handle multi-triple node patterns.
This keeps track of which vars were present in the solution before and after processing.
b6765da to
53b959d
Compare
This makes reading the output much clearer, new vars are always at the end.
53b959d to
0f616b0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Explain
Adds an api function for tracking solution during query execution.
Each pattern in the where clause is tracked and the number of solutions it produces is returned, so users can see how each pattern affects the solution space.
This query:
Produces this solution report of a vector of
[<pattern> <counters>]tuples in execution order, tracking the number of solutions input to a pattern under:inand the number of solutions produced by a pattern under:out.Limitations
This PR provides a subset of the functionality outlined in https://github.com/fluree/core/issues/181.
The issue describes tracking the number of bindings per variable, but each solution will always have a binding for each variable introduced in prior patterns, so the number of solutions can be used to infer this information.
This PR does not track any of the following at this time:
nullin the case ofOPTIONALpatterns.