From 96668c881d5cbc5689859cd2ae3660d51869a78f Mon Sep 17 00:00:00 2001 From: Mayur Singal <39544459+ulixius9@users.noreply.github.com> Date: Fri, 10 May 2024 10:16:41 +0530 Subject: [PATCH] MINOR: Fix missing attribute get_table_owner (#16214) --- .../metadata/ingestion/source/database/database_service.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ingestion/src/metadata/ingestion/source/database/database_service.py b/ingestion/src/metadata/ingestion/source/database/database_service.py index 5637965a7ac..793f718c1e0 100644 --- a/ingestion/src/metadata/ingestion/source/database/database_service.py +++ b/ingestion/src/metadata/ingestion/source/database/database_service.py @@ -521,7 +521,9 @@ class DatabaseServiceSource( Method to process the table owners """ try: - if self.source_config.includeOwners: + if self.source_config.includeOwners and hasattr( + self.inspector, "get_table_owner" + ): owner_name = self.inspector.get_table_owner( connection=self.connection, # pylint: disable=no-member.fetchall() table_name=table_name,