Skip to content

fix: keep the default tolerance key when upper casing column names - #572

Merged
fdosani merged 2 commits into
capitalone:mainfrom
kwy404:fix/upper-case-default-tolerance
Sep 24, 2026
Merged

fdosani merged 2 commits into
capitalone:mainfrom
kwy404:fix/upper-case-default-tolerance

Conversation

@kwy404

@kwy404 kwy404 commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

SnowflakeCompare normalizes tolerance dict keys with case_mode="upper", which turned the special "default" key into "DEFAULT". get_column_tolerance looks up "default", which was then filled in as 0.0, so a dict like {"COL1": 0.1, "default": 0.5} silently compared every other column exactly. This skips upper casing for the "default" key and extends test_case_sensitivity to cover it.

Checks run: pytest tests/test_base.py tests/test_pandas.py tests/test_polars.py (the only failures are two pre-existing Windows path/encoding tests that also fail on main), ruff check and ruff format --check on the changed files.

@kwy404
kwy404 requested review from a team as code owners September 24, 2026 11:56
@CLAassistant

CLAassistant commented Sep 24, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@fdosani fdosani left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing/flagging this!

@fdosani
fdosani merged commit ab20780 into capitalone:main Sep 24, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants