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,7 +279,7 @@ def transform_clickhouse(config: Dict[str, Any]):
"port": config["port"],
"schema": config["database"],
"user": config["username"],
"password": config["password"],
"password": config.get("password", ""),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will assign "" an empty string as the password. Can you check if the expected config is maybe without this key or with None instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

}
if "tcp-port" in config:
dbt_config["port"] = config["tcp-port"]
Expand Down