Skip to content

Conversation

@tausbn
Copy link
Contributor

@tausbn tausbn commented Jun 30, 2023

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.

Also adds pragma[nomagic] to one of the utility predicates, as it would otherwise cause an inefficient join order to appear.

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.
@tausbn tausbn requested a review from a team as a code owner June 30, 2023 13:08
@github-actions github-actions bot added the Java label Jun 30, 2023
@tausbn tausbn added the no-change-note-required This PR does not need a change note label Jun 30, 2023
tausbn added 5 commits July 1, 2023 15:04
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.
@tausbn tausbn requested a review from kaeluka July 13, 2023 12:50
kaeluka
kaeluka previously approved these changes Jul 14, 2023
Copy link

@kaeluka kaeluka left a 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 :)

Copy link

@kaeluka kaeluka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@kaeluka
Copy link

kaeluka commented Jul 17, 2023

@jhelie — I think it was @tausbn's intention to merge this before going on vacation, but may be out of the loop. Do you agree we can merge this?

@jhelie
Copy link
Contributor

jhelie commented Jul 18, 2023

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 👍

@kaeluka kaeluka merged commit 5575fc6 into main Jul 19, 2023
@kaeluka kaeluka deleted the tausbn/add-sink-alert-metrics-query branch July 19, 2023 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Java no-change-note-required This PR does not need a change note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants