Skip to content

Commit

Permalink
[Fix] DRC-979 Disable warring message of dbt's WarnStateTargetEqual
Browse files Browse the repository at this point in the history
Signed-off-by: Kent Huang <[email protected]>
  • Loading branch information
kentwelcome committed Dec 27, 2024
1 parent e8516d8 commit 2daefaa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions recce/adapter/dbt_adapter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ def previous_state(state_path: Path, target_path: Path, project_root: Path) -> P
if dbt_version < 'v1.5.2':
return PreviousState(state_path, target_path)
else:
from dbt.events.types import WarnStateTargetEqual
from dbt_common.events import EventLevel

WarnStateTargetEqual.level_tag = lambda x: EventLevel.DEBUG
return PreviousState(state_path, target_path, project_root)


Expand Down

0 comments on commit 2daefaa

Please sign in to comment.