-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
wip(eap): http response rate function #85662
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is ✅ All tests successful. No failed tests found.
Additional details and impacted files@@ Coverage Diff @@
## master #85662 +/- ##
===========================================
+ Coverage 42.22% 87.90% +45.68%
===========================================
Files 9665 9697 +32
Lines 548129 550042 +1913
Branches 21345 21345
===========================================
+ Hits 231453 483540 +252087
+ Misses 316366 66192 -250174
Partials 310 310 |
if function in self.definitions.functions: | ||
function_definition = self.definitions.functions[function] |
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.
In a future refactor, we can rename self.definitions.functions
to self.definitions.aggregates
@wmak I addressed your comments! Lmk if that works for you! |
|
||
|
||
@dataclass | ||
class FormulaDefinition: |
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.
Could we have this inherit from FunctionDefinition
so we're not repeating everything?
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 think there's some class variables that don't apply to both. For example for FormulaDefinition
, internal_type
doesnt isn't relevant.
I'm thinking when we do the split, we could have a base class FunctionDefinition
, and then AggregateDefinition
and FormulaDefinition
inherit from that?
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.
Overall in the right direction, I'm mostly concerned that we're sorta hacking the argument resolution currently.
👍 thanks for the review, I don't mind spending some more time getting the args working properly in this PR |
@wmak I cleaned up the argument list a bit more. Since you looked there several changes
|
Work for #81750
http_response_rate
function, which is used in insights