From 4cd3cb128c28f3d139b68d63397727230c8f84ba Mon Sep 17 00:00:00 2001 From: Suman Maharana Date: Fri, 22 Nov 2024 22:05:05 +0530 Subject: [PATCH] Minor: Fix Athena location path (#18750) --- .../metadata/ingestion/source/database/athena/metadata.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ingestion/src/metadata/ingestion/source/database/athena/metadata.py b/ingestion/src/metadata/ingestion/source/database/athena/metadata.py index 03ad197e4c96..9a05a8bd297d 100644 --- a/ingestion/src/metadata/ingestion/source/database/athena/metadata.py +++ b/ingestion/src/metadata/ingestion/source/database/athena/metadata.py @@ -157,6 +157,14 @@ def get_table_partition_details( return True, partition_details return False, None + def get_location_path(self, table_name: str, schema_name: str) -> Optional[str]: + """ + Method to fetch the location path of the table + """ + return self.external_location_map.get( + (self.context.get().database, schema_name, table_name) + ) + def yield_tag( self, schema_name: str ) -> Iterable[Either[OMetaTagAndClassification]]: