Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions data_diff/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,10 +343,11 @@ def _main(

expanded_columns = set()
for c in columns:
match = set(match_like(c, mutual))
cc = c if case_sensitive else c.lower()
match = set(match_like(cc, mutual))
if not match:
m1 = None if any(match_like(c, schema1.keys())) else f"{db1}/{table1}"
m2 = None if any(match_like(c, schema2.keys())) else f"{db2}/{table2}"
m1 = None if any(match_like(cc, schema1.keys())) else f"{db1}/{table1}"
m2 = None if any(match_like(cc, schema2.keys())) else f"{db2}/{table2}"
not_matched = ", ".join(m for m in [m1, m2] if m)
raise ValueError(f"Column '{c}' not found in: {not_matched}")

Expand Down