diff --git a/ingestion/src/metadata/profiler/profiler/interface/sqlalchemy/sqa_profiler_interface.py b/ingestion/src/metadata/profiler/profiler/interface/sqlalchemy/sqa_profiler_interface.py index 4abfaad1bcc..153581cac80 100644 --- a/ingestion/src/metadata/profiler/profiler/interface/sqlalchemy/sqa_profiler_interface.py +++ b/ingestion/src/metadata/profiler/profiler/interface/sqlalchemy/sqa_profiler_interface.py @@ -253,7 +253,6 @@ class SQAProfilerInterface(ProfilerProtocol, SQAInterfaceMixin): row = runner.select_first_from_sample( *[metric(column).fn() for metric in metrics] ) - return dict(row) except Exception as exc: logger.debug(traceback.format_exc()) logger.warning( @@ -261,6 +260,9 @@ class SQAProfilerInterface(ProfilerProtocol, SQAInterfaceMixin): ) session.rollback() raise RuntimeError(exc) + if row: + return dict(row) + return None @_get_metrics.register(MetricTypes.System.value) def _(