Skip to content

Commit

Permalink
Update dremio_api.py
Browse files Browse the repository at this point in the history
  • Loading branch information
acrylJonny committed Nov 14, 2024
1 parent dccc5c8 commit b68cd31
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""

0 comments on commit b68cd31

Please sign in to comment.