-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify RedshiftConnectionManager to extend from SQLConnectionManager,…
… migrate from psycopg2 to redshift python connector (#251) * Change RedshiftConnectionManager to extend from SQLConnectionManager, define a _get_connect_method method to leverage Redshift python connector to retrieve the connect method * Add/fix unit tests, create RedshiftConnectMethodFactory to vend connect_method * Fix _connection_keys to mimic PostgresConnectionManager * Remove unneeded functions for tmp_cluster_creds and env_var creds auth due to in-built support in Redshift Python Connector * Resolve some TODOs * Fix references to old exceptions, add changelog * Fix errors with functional tests by overriding add_query & execute and modifying multi statement execution * Attempt to fix integration tests by adding `valid_incremental_strategies` in impl.py * Fix unit tests * Attempt to fix integration tests * add unit tests for execute * add unit tests for add_query * make get_connection_method work with serverless * add unit tests for serverless iam connections * add redshift connector version, remove sslmode, connection time out, role, application_name * change redshift_connector version --------- Co-authored-by: jiezhec <[email protected]> Co-authored-by: colin-rogers-dbt <[email protected]>
- Loading branch information
1 parent
e0598b8
commit 2cc47bb
Showing
5 changed files
with
395 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
kind: Under the Hood | ||
body: Replace psycopg2 connector with Redshift python connector when connecting to | ||
Redshift | ||
time: 2023-01-18T07:15:42.183304-08:00 | ||
custom: | ||
Author: sathiish-kumar | ||
Issue: "219" | ||
PR: "251" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.