fix: db_service not passed to metric instantiating (#17504)

This commit is contained in:
Teddy 2024-08-20 16:57:03 +02:00 committed by GitHub
parent 2bbf60fc6b
commit 354f879866
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -77,9 +77,12 @@ class DefaultProfiler(Profiler):
include_columns: Optional[List[ColumnProfilerConfig]] = None,
exclude_columns: Optional[List[str]] = None,
global_profiler_configuration: Optional[ProfilerConfiguration] = None,
db_service=None,
):
_metrics = get_default_metrics(
table=profiler_interface.table, ometa_client=profiler_interface.ometa_client
table=profiler_interface.table,
ometa_client=profiler_interface.ometa_client,
db_service=db_service,
)
super().__init__(

View File

@ -277,6 +277,7 @@ class ProfilerSource(ProfilerSourceInterface):
include_columns=self._get_include_columns(entity, table_config),
exclude_columns=self._get_exclude_columns(entity, table_config),
global_profiler_configuration=self.global_profiler_configuration,
db_service=db_service,
)
metrics = (