From 0e4f80899ee84fff78582a83149ca6dcaa50a70e Mon Sep 17 00:00:00 2001 From: Aldwyn Cabarrubias Date: Thu, 21 Dec 2023 17:37:59 +0800 Subject: [PATCH] Update profiler_interface.py (#14287) Transpose row=None before try statement in compute_metrics_in_thread function Co-authored-by: Pere Miquel Brull --- .../profiler/interface/sqlalchemy/profiler_interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ingestion/src/metadata/profiler/interface/sqlalchemy/profiler_interface.py b/ingestion/src/metadata/profiler/interface/sqlalchemy/profiler_interface.py index 1020e76d8c1..25b0671240f 100644 --- a/ingestion/src/metadata/profiler/interface/sqlalchemy/profiler_interface.py +++ b/ingestion/src/metadata/profiler/interface/sqlalchemy/profiler_interface.py @@ -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