Skip to content

Commit

Permalink
Revert "[fix] Use rendered query comment for job labels (#955)"
Browse files Browse the repository at this point in the history
This reverts commit d5b4114.
  • Loading branch information
McKnight-42 authored Oct 6, 2023
1 parent d5b4114 commit 8c0a7f4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 61 deletions.
6 changes: 0 additions & 6 deletions .changes/unreleased/Fixes-20231005-235950.yaml

This file was deleted.

5 changes: 2 additions & 3 deletions dbt/adapters/bigquery/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,10 +451,9 @@ def raw_execute(
hasattr(self.profile, "query_comment")
and self.profile.query_comment
and self.profile.query_comment.job_label
and self.query_header
and (query_comment := self.query_header.comment.query_comment)
):
labels = self._labels_from_query_comment(query_comment)
query_comment = self.profile.query_comment
labels = self._labels_from_query_comment(query_comment.comment)
else:
labels = {}

Expand Down
52 changes: 0 additions & 52 deletions tests/functional/adapter/query_comment_test/test_job_label.py

This file was deleted.

0 comments on commit 8c0a7f4

Please sign in to comment.