diff --git a/.changes/unreleased/Fixes-20230713-190412.yaml b/.changes/unreleased/Fixes-20230713-190412.yaml new file mode 100644 index 000000000..d50ab7a1f --- /dev/null +++ b/.changes/unreleased/Fixes-20230713-190412.yaml @@ -0,0 +1,6 @@ +kind: Fixes +body: re-enable query commenting +time: 2023-07-13T19:04:12.580073-04:00 +custom: + Author: dataders + Issue: "536" diff --git a/dbt/adapters/redshift/connections.py b/dbt/adapters/redshift/connections.py index dd2942b07..7d05a3395 100644 --- a/dbt/adapters/redshift/connections.py +++ b/dbt/adapters/redshift/connections.py @@ -337,6 +337,7 @@ def exponential_backoff(attempt: int): def execute( self, sql: str, auto_begin: bool = False, fetch: bool = False ) -> Tuple[AdapterResponse, agate.Table]: + sql = self._add_query_comment(sql) _, cursor = self.add_query(sql, auto_begin) response = self.get_response(cursor) if fetch: