Skip to content

Commit

Permalink
Fixed error handling and logging
Browse files Browse the repository at this point in the history
  • Loading branch information
moomindani committed Feb 19, 2025
1 parent c55eb50 commit 88239e3
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions dbt/adapters/glue/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,6 @@ def list_schemas(self, database: str) -> List[str]:
return schemas

def list_relations_without_caching(self, schema_relation: SparkRelation):
if not schema_relation or not schema_relation.schema:
logger.debug("Invalid schema_relation")
return []

session, client = self.get_connection()
relations = []
paginator = client.get_paginator('get_tables')
Expand All @@ -168,10 +164,6 @@ def list_relations_without_caching(self, schema_relation: SparkRelation):
logger.error(e)

def check_schema_exists(self, database: str, schema: str) -> bool:
if not schema:
logger.debug("Schema is None or empty")
return False

try:
schemas = self.list_schemas(schema)
logger.debug(f"Available schemas: {schemas}")
Expand Down

0 comments on commit 88239e3

Please sign in to comment.