Skip to content

fix: Fix skip_batches logic for NaN#27673

Merged
ritchie46 merged 3 commits into
mainfrom
skip_batches
May 20, 2026
Merged

fix: Fix skip_batches logic for NaN#27673
ritchie46 merged 3 commits into
mainfrom
skip_batches

Conversation

@ritchie46
Copy link
Copy Markdown
Member

This was a flaky hypothesis test. Hitting test case found with AI.

GtEq is not safe under total order as stats exclude NaN.

@github-actions github-actions Bot added fix Bug fix python Related to Python Polars rust Related to Rust Polars labels May 20, 2026
@github-actions
Copy link
Copy Markdown
Contributor

The uncompressed lib size after this PR is 60.1638 MB.

@github-actions
Copy link
Copy Markdown
Contributor

The uncompressed lib size after this PR is 59.9854 MB.

@github-actions
Copy link
Copy Markdown
Contributor

The uncompressed lib size after this PR is 60.1638 MB.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.78%. Comparing base (9d8a77e) to head (9c83369).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #27673      +/-   ##
==========================================
- Coverage   81.48%   80.78%   -0.71%     
==========================================
  Files        1840     1840              
  Lines      256109   256113       +4     
  Branches     3181     3181              
==========================================
- Hits       208696   206890    -1806     
- Misses      46588    48397    +1809     
- Partials      825      826       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ritchie46 ritchie46 merged commit 71dfa88 into main May 20, 2026
33 checks passed
@ritchie46 ritchie46 deleted the skip_batches branch May 20, 2026 11:10
assert sbp(pl.col("x") > NaN) is not None # Can skip. Nothing > NaN under TotalOrd.
assert sbp(pl.col("x") >= 5.0) is None # No skip. Hidden NaN satisfies >=.
assert sbp(pl.col("x") >= NaN) is not None # Can skip. Nothing > NaN.
assert sbp(pl.col("x") > NaN) is not None # Can skip. Nothing > NaN.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Am I missing something or this particular test/line is already present two lines above?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Nope, you are not. Good catch.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Bug fix python Related to Python Polars rust Related to Rust Polars

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants