Skip to content

Normalization Clickhouse: Fix exception in case password is not provided #10219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Feb 16, 2022
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,9 @@ def transform_clickhouse(config: Dict[str, Any]):
"port": config["port"],
"schema": config["database"],
"user": config["username"],
"password": config["password"],
}
if "password" in config:
dbt_config["password"] = config["password"]
if "tcp-port" in config:
dbt_config["port"] = config["tcp-port"]
return dbt_config
Expand Down