From bc9b0b6c8565d2adf1c548ce35b7b41fc0455385 Mon Sep 17 00:00:00 2001 From: Emilie Lima Schario <14057155+emilieschario@users.noreply.github.com> Date: Mon, 29 Nov 2021 05:20:01 -0500 Subject: [PATCH] Adjust logic when finding approx matches for model or test matching (#4076) * adjust logic when finding approx matches * update changelog * Update core/dbt/adapters/base/relation.py Co-authored-by: Jeremy Cohen * Update changelog Co-authored-by: Jeremy Cohen Co-authored-by: Jeremy Cohen automatic commit by git-black, original commits: ed1ff2caac5b87ae4fd6480fc1a11de6e03555be --- core/dbt/adapters/base/relation.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/dbt/adapters/base/relation.py b/core/dbt/adapters/base/relation.py index 3f76b62e4cf..c06e25a1680 100644 --- a/core/dbt/adapters/base/relation.py +++ b/core/dbt/adapters/base/relation.py @@ -93,9 +93,8 @@ def matches( if not self._is_exactish_match(k, v): exact_match = False - if ( - self.path.get_lowered_part(k).strip(self.quote_character) != - v.lower().strip(self.quote_character) + if self.path.get_lowered_part(k).strip(self.quote_character) != v.lower().strip( + self.quote_character ): approximate_match = False