-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Java: Add metric queries for counting sinks coming from models #13636
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
Conversation
Adds two queries for gathering metrics on the number of alerts (for a selection of queries) that arise from models with the `ai-generated` provenance.
While the string representation is useful for quickly modifying queries, it's a bit clunky when the data needs to be further parsed. Instead, the two queries now select all of the columns of the sinkmodel separately (which makes it easy to pull them out of the relevant output later on).
Also adds a more sensible ordering to the existing queries.
Exposes the same information as the existing queries through two query predicates instead. This makes the downstream data gathering a bit more convenient to implement.
kaeluka
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just had a few superficial comments — LGTM, otherwise :)
kaeluka
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
|
@jhelie — I think it was |
|
If those are improvements related to the MRVA metrics queries used in the work you've picked up, then yes I agree let's merge it 👍 |
Adds two queries for gathering metrics on the number of alerts (for a selection of queries) that arise from models with the
ai-generatedprovenance.Also adds
pragma[nomagic]to one of the utility predicates, as it would otherwise cause an inefficient join order to appear.