mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2026-01-08 21:48:22 +00:00
Update profiler_interface.py (#14287)
Transpose row=None before try statement in compute_metrics_in_thread function Co-authored-by: Pere Miquel Brull <peremiquelbrull@gmail.com>
This commit is contained in:
parent
7f0f8c54bc
commit
0e4f80899e
@ -437,6 +437,7 @@ class SQAProfilerInterface(ProfilerInterface, SQAInterfaceMixin):
|
||||
metric_func.table,
|
||||
sample,
|
||||
)
|
||||
row = None
|
||||
|
||||
try:
|
||||
row = self._get_metric_fn[metric_func.metric_type.value](
|
||||
@ -453,7 +454,6 @@ class SQAProfilerInterface(ProfilerInterface, SQAInterfaceMixin):
|
||||
)
|
||||
logger.error(error)
|
||||
self.status.failed_profiler(error, traceback.format_exc())
|
||||
row = None
|
||||
|
||||
if metric_func.column is not None:
|
||||
column = metric_func.column.name
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user