-
-
Notifications
You must be signed in to change notification settings - Fork 61
feat(eap): Add NULL-safe division and ConditionalFormula support for formulas #7697
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
88bc9de
feat(eap): Add tests for OCCURRENCE item type hourly event rate queries
phacops 23cbabe
fix(eap): Refactor tests to accurately reflect supported vs unsupport…
phacops 2ac2d8e
test(eap): Add test for countIf with aggregate in condition
phacops 7fba41f
feat(eap): Add NULL-safe division and ConditionalFormula support for …
phacops 5be1885
ref(eap): Bump sentry-protos to 0.6.0
phacops 937280c
fix(eap): Remove defensive proto field checks now that sentry-protos …
phacops f88694f
fix(eap): Handle conditional_formula in column converter
phacops 444a492
fix(eap): Fix test data setup for new issues in conditional rate test
phacops e053340
fix(eap): Spread test events within countable window
phacops c0aebba
fix(eap): Move now-supported tests out of Unsupported class
phacops 0a473f8
fix(eap): Replace xfail tests with working countIf + ConditionalFormu…
phacops 1e102f3
ref(eap): Simplify ConditionalFormula code and deduplicate test helpers
phacops 6132d5a
Merge branch 'master' into phacops/occurrence-hourly-event-rate-tests
phacops File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
Bug: The functions
_conditional_formula_to_expressionand_get_reliability_context_columnsdo not check for the existence of optional protobuf fields before accessing them, leading to a potentialBadSnubaRPCRequestException.Severity: MEDIUM
Suggested Fix
Before accessing the
condition,match, anddefaultfields of theconditional_formulaobject in_conditional_formula_to_expressionand_get_reliability_context_columns, addHasField()checks. This will make the implementation consistent with other parts of the codebase and prevent exceptions for incompletely formed requests.Prompt for AI Agent
Did we get this right? 👍 / 👎 to inform future reviews.