Skip to content

Commit

Permalink
Adjust logic when finding approx matches for model or test matching (#…
Browse files Browse the repository at this point in the history
…4076)

* adjust logic when finding approx matches

* update changelog

* Update core/dbt/adapters/base/relation.py

Co-authored-by: Jeremy Cohen <jtcohen6@gmail.com>

* Update changelog

Co-authored-by: Jeremy Cohen <jtcohen6@gmail.com>
Co-authored-by: Jeremy Cohen <jeremy@dbtlabs.com>

automatic commit by git-black, original commits:
  ed1ff2c
  • Loading branch information
emilieschario authored and iknox-fa committed Feb 8, 2022
1 parent 76088f5 commit bc9b0b6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/dbt/adapters/base/relation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit bc9b0b6

Please sign in to comment.