MINOR: Fix missing attribute get_table_owner (#16214)

This commit is contained in:
Mayur Singal 2024-05-10 10:16:41 +05:30 committed by GitHub
parent 4d75ce03bd
commit 96668c881d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,