Dataflow: Introduce support for src/sink grouping in path results. #11183
+4,107
−111
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.
This introduces a new feature in the shared data flow library. The primary use-case is currently intended to be debugging, but the feature may also find other uses.
Sometimes we get a huge number of path results in a query, which can be cumbersome to look through. If, in these case, we mostly care about flow reaching some sink (possibly with some property) rather than needing to know about the specific sink, and we just want to see representative paths reaching arbitrary sinks, then it can be beneficial to reduce the number of source-sink pairs by adding one or more synthesised sink nodes that collect the flow from multiple sinks. E.g. for MaD sink model generation we care only about the sink kind that's reached rather than the specific sink node.
This PR introduces support for grouping several sink nodes into a single sink-group-node (represented by a string) in order to reduce the number of path results. The symmetric support for source grouping is also added.