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
Conversation
config_dict: dict, | ||
metadata_config_dict: dict, | ||
ctx: WorkflowContext, | ||
**kwargs |
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.
Allows us to pass more parameters to the processor, such as the session
in the ORM Processor. It should be transparent for the existent Processors
self.session.add_all(data) | ||
self.session.commit() | ||
|
||
hist = Metrics.HISTOGRAM(TestHist.num, bins=5) |
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 can now pass kwargs when creating metrics to be more flexible in internal functionalities. Still needs to be updated in the Processor
return issubclass(_type.__class__, Numeric) | ||
|
||
|
||
def is_quantifiable(_type) -> bool: |
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.
helps handle what types we support for each metric
[open-metadata-ingestion] Kudos, SonarCloud Quality Gate passed! |
:param _from: From where do we load the sink class. Ingestion by default. | ||
""" | ||
processor_class = get_class( | ||
"metadata.{}.processor.{}.{}Processor".format( |
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
Describe your changes :
This PR fixes #2894 and partially #2878
There are two main changes in this PR:
workflow
logic. We have also updated the Status to properly log the results.QueryMetric
. We have also developed intermediate functions (CONCAT) that can be used when computing other metrics.Type of change :
Frontend Preview (Screenshots) :
For frontend related change, please link screenshots of your changes preview! Optional for backend related changes.
Checklist:
Reviewers