Skip to content

Commit

Permalink
cast port as integer (#523)
Browse files Browse the repository at this point in the history
* cast port as integer
* remove pin to exclude rs_connector 2.0.912
  • Loading branch information
jiezhen-chen authored Jul 6, 2023
1 parent 6254fdd commit 919b391
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changes/unreleased/Fixes-20230706-123329.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Fixes
body: cast the port as an int
time: 2023-07-06T12:33:29.799921-07:00
custom:
Author: jiezhen-chen
Issue: "518"
2 changes: 1 addition & 1 deletion dbt/adapters/redshift/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def get_connect_method(self):
kwargs = {
"host": self.credentials.host,
"database": self.credentials.database,
"port": self.credentials.port if self.credentials.port else 5439,
"port": int(self.credentials.port) if self.credentials.port else int(5439),
"auto_create": self.credentials.autocreate,
"db_groups": self.credentials.db_groups,
"region": self.credentials.region,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def _core_version(plugin_version: str = _plugin_version()) -> str:
f"dbt-core~={_core_version()}",
f"dbt-postgres~={_core_version()}",
"boto3~=1.26.26",
"redshift-connector~=2.0.911,!=2.0.912",
"redshift-connector~=2.0.911",
# installed via dbt-core but referenced directly; don't pin to avoid version conflicts with dbt-core
"agate",
],
Expand Down

0 comments on commit 919b391

Please sign in to comment.