From f99ed517bc4d34447bbff1bca0c28d26b0235756 Mon Sep 17 00:00:00 2001 From: Pere Miquel Brull Date: Thu, 28 Nov 2024 14:08:11 +0100 Subject: [PATCH] FIX - TestSuite source to get the right interface based on the service type (#18838) --- .../src/metadata/data_quality/runner/base_test_suite_source.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ingestion/src/metadata/data_quality/runner/base_test_suite_source.py b/ingestion/src/metadata/data_quality/runner/base_test_suite_source.py index 9651e0d045f7..bf4897843a9f 100644 --- a/ingestion/src/metadata/data_quality/runner/base_test_suite_source.py +++ b/ingestion/src/metadata/data_quality/runner/base_test_suite_source.py @@ -49,9 +49,10 @@ def __init__( ): self.validator_builder_class = ValidatorBuilder self._interface = None - self._interface_type: str = config.source.type.lower() self.entity = entity self.service_conn_config = self._copy_service_config(config, self.entity.database) # type: ignore + self._interface_type: str = self.service_conn_config.type.value.lower() + self.source_config = TestSuitePipeline.model_validate( config.source.sourceConfig.config )