Skip to content

Commit

Permalink
Fix cased comparison in catalog-retrieval function (#8940)
Browse files Browse the repository at this point in the history
* Fix cased comparison in catalog-retrieval function.

* Fix cased comparison in catalog-retrieval function.
  • Loading branch information
peterallenwebb authored Oct 30, 2023
1 parent a2a7b7d commit 7317de2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .changes/unreleased/Fixes-20231030-093734.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Fixes
body: Fix cased comparison in catalog-retrieval function.
time: 2023-10-30T09:37:34.258612-04:00
custom:
Author: peterallenwebb
Issue: "8939"
6 changes: 3 additions & 3 deletions core/dbt/adapters/base/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -1179,9 +1179,9 @@ def get_filtered_catalog(
}

def in_map(row: agate.Row):
d = _expect_row_value("table_database", row)
s = _expect_row_value("table_schema", row)
i = _expect_row_value("table_name", row)
d = _expect_row_value("table_database", row).casefold()
s = _expect_row_value("table_schema", row).casefold()
i = _expect_row_value("table_name", row).casefold()
return (d, s, i) in relation_map

catalogs = catalogs.where(in_map)
Expand Down

0 comments on commit 7317de2

Please sign in to comment.