diff --git a/metadata-ingestion/src/datahub/ingestion/source/dremio/dremio_api.py b/metadata-ingestion/src/datahub/ingestion/source/dremio/dremio_api.py index 9a39b891eebbf..acd0e2b10b4a1 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/dremio/dremio_api.py +++ b/metadata-ingestion/src/datahub/ingestion/source/dremio/dremio_api.py @@ -781,7 +781,9 @@ def get_context_for_vds(self, resource_id: str) -> str: context_array = self.get( url=f"/catalog/{resource_id}", ).get("sqlContext") - - return ".".join( - f'"{part}"' if "." in part else f"{part}" for part in context_array - ) + if context_array: + return ".".join( + f'"{part}"' if "." in part else f"{part}" for part in context_array + ) + else: + return ""