Skip to content

Commit

Permalink
switch if/else pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
LProcopi15 committed Jan 13, 2025
1 parent 6360ea0 commit 1c2a14a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dbt/adapters/snowflake/relation.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,11 @@ def get_ddl_prefix_for_alter(self) -> str:
return ""

def get_iceberg_ddl_options(self, config: RelationConfig) -> str:
base_location: str = f"_dbt/{self.schema}/{self.name}"

# If the base_location config is supplied, overwrite the default value
if base_path := config.get("base_location"):
base_location: str = f"{base_path}"
else:
base_location: str = f"_dbt/{self.schema}/{self.name}"
base_location = f"{base_path}"

if subpath := config.get("base_location_subpath"):
base_location += f"/{subpath}"
Expand Down

0 comments on commit 1c2a14a

Please sign in to comment.