dbt-labs / dbt-snowflake

dbt-snowflake contains all of the code enabling dbt to work with Snowflake
https://getdbt.com
Apache License 2.0
296 stars 176 forks source link

[Bug] dynamic iceberg tables don't build without base_location_subpath option #1200

Closed VersusFacit closed 1 month ago

VersusFacit commented 1 month ago

Is this a new bug in dbt-snowflake?

Current Behavior

base_location_subpath should be an optional parameter that the user provides as an additional scoping mechanism. Instead, it is currently responsible for base generation creation.

image

Expected Behavior

Dynamic iceberg tables should render ddl using the _dbt/schema/relation name base location when no base_location_subpath is provided.

Steps To Reproduce

  1. in an iceberg-enabled snowflake, write a dynamic iceberg table code artifact with no base_location_subpath param
  2. dbt run

Relevant log output

No response

Environment

- OS:
- Python:
- dbt-core:
- dbt-snowflake:

Additional Context

No response