Skip to content

Commit a81ccf4

Browse files
committed
prettify
1 parent 8d5f03c commit a81ccf4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dbt/adapters/dremio/connections.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ def create_catalog(self, relation):
224224
database = relation.database
225225
schema = relation.schema
226226

227-
if database == ("@" + credentials.UID) or self.__catalog_exists(
228-
[database]):
227+
if database == ("@" + credentials.UID) or self._catalog_exists(
228+
database):
229229
logger.debug(
230230
"Database is default or already exists: creating folders only")
231231
else:
@@ -237,14 +237,14 @@ def create_catalog(self, relation):
237237
self._create_folders(database, schema, rest_client)
238238
return
239239

240-
def __catalog_exists(self, path):
240+
def _catalog_exists(self, path: str):
241241
thread_connection = self.get_thread_connection()
242242
connection = self.open(thread_connection)
243243
rest_client = connection.handle.get_client()
244244
try:
245245
catalog_info = rest_client.get_catalog_item(
246246
catalog_id=None,
247-
catalog_path=path,
247+
catalog_path=[path],
248248
)
249249
return catalog_info.get("id") is not None
250250
except DremioNotFoundException:

0 commit comments

Comments
 (0)