diff --git a/.changes/unreleased/Features-20230604-041410.yaml b/.changes/unreleased/Features-20230604-041410.yaml new file mode 100644 index 000000000..e617e3561 --- /dev/null +++ b/.changes/unreleased/Features-20230604-041410.yaml @@ -0,0 +1,6 @@ +kind: Features +body: Standardize the _connection_keys and debug_query for `dbt debug`. +time: 2023-06-04T04:14:10.191263-07:00 +custom: + Author: versusfacit + Issue: PR754 diff --git a/dbt/adapters/redshift/connections.py b/dbt/adapters/redshift/connections.py index 0c25ec08d..2c43b46a7 100644 --- a/dbt/adapters/redshift/connections.py +++ b/dbt/adapters/redshift/connections.py @@ -162,15 +162,25 @@ def type(self): def _connection_keys(self): return ( "host", - "port", "user", + "port", "database", - "schema", "method", "cluster_id", "iam_profile", + "schema", "sslmode", "region", + "sslmode", + "region", + "iam_profile", + "autocreate", + "db_groups", + "ra3_node", + "connect_timeout", + "role", + "retries", + "autocommit", ) @property diff --git a/dbt/adapters/redshift/impl.py b/dbt/adapters/redshift/impl.py index 54fdd7dcf..2d7f3a854 100644 --- a/dbt/adapters/redshift/impl.py +++ b/dbt/adapters/redshift/impl.py @@ -163,3 +163,7 @@ def default_python_submission_method(self) -> str: def generate_python_submission_response(self, submission_result: Any) -> AdapterResponse: return super().generate_python_submission_response(submission_result) + + def debug_query(self): + """Override for DebugTask method""" + self.execute("select 1 as id")