-
Notifications
You must be signed in to change notification settings - Fork 876
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
Fix #2894 - Profiler Processor & Metrics #2900
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
8960463
Add kwargs to processor create
pmbrull 392fc4f
Add processor fetch method
pmbrull 3f8e441
Format
pmbrull e20f94b
Save the computed value in the validation
pmbrull 6fae251
Return status
pmbrull 936616a
Update processor JSON config object and add return type
pmbrull 832ce84
Prepare ORM processor
pmbrull 6ebab54
Use ORM processor and log statuses
pmbrull c68964b
Update tests using processor
pmbrull e4d693b
Prepare helper methods to identify types
pmbrull e7d5497
Update STDDEV
pmbrull 62a14f1
Add AVG
pmbrull 2ccf1ef
Add AVG
pmbrull 2430d33
Add distinct
pmbrull 3d4ab31
Add distinct
pmbrull 9e0d69d
Add duplicate count
pmbrull a70f6cb
Add custom function definitions
pmbrull b4c7a66
Add custom function definitions
pmbrull ca89fde
Allow kwargs and create new QueryMetric
pmbrull fa906bb
Run queryMetrics in Profiler
pmbrull 23d421a
Use proper naming
pmbrull 0b67ad1
Define histogram metric
pmbrull 40f02b7
Define histogram metric
pmbrull 629b308
Simplify join condition
pmbrull File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,11 @@ class Processor(Closeable, Generic[Entity], metaclass=ABCMeta): | |
@classmethod | ||
@abstractmethod | ||
def create( | ||
cls, config_dict: dict, metadata_config_dict: dict, ctx: WorkflowContext | ||
cls, | ||
config_dict: dict, | ||
metadata_config_dict: dict, | ||
ctx: WorkflowContext, | ||
**kwargs | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Allows us to pass more parameters to the processor, such as the |
||
) -> "Processor": | ||
pass | ||
|
||
|
This file contains 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 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.
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.
We need to make this more flexible to load the class without depending on the packaging convention.
Not important right now but can be annoying for users to write their own sources, processors
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.
That's a good point. Let's tackle this together with #2848. I'll add a comment there