diff --git a/dbt/adapters/duckdb/secrets.py b/dbt/adapters/duckdb/secrets.py index 71446382..46a7ff39 100644 --- a/dbt/adapters/duckdb/secrets.py +++ b/dbt/adapters/duckdb/secrets.py @@ -47,7 +47,9 @@ def to_sql(self) -> str: params.update(params.pop("secret_kwargs", {})) params_sql = f",\n{tab}".join( [ - f"{key} '{value}'" if key not in ["type", "provider", "extra_http_headers"] else f"{key} {value}" + f"{key} '{value}'" + if key not in ["type", "provider", "extra_http_headers"] + else f"{key} {value}" for key, value in params.items() if value is not None and key not in ["name", "persistent"] ]