Skip to content

Conversation

@gfilaci
Copy link
Contributor

@gfilaci gfilaci commented Jun 9, 2025

Fix for #2031.
The check_obj.pandera.schema attribute is restored after columns are dropped.
The fix is similar to what is done (for example) already here:
https://github.com/unionai-oss/pandera/blob/main/pandera/backends/pyspark/container.py#L455
The modified test would fail without this patch.

…schemas. Generalize test to validate this case.

Signed-off-by: Gianluca Filaci <[email protected]>
@codecov
Copy link

codecov bot commented Jul 2, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.86%. Comparing base (812b2a8) to head (43042c6).
⚠️ Report is 358 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2032      +/-   ##
==========================================
- Coverage   94.28%   93.86%   -0.42%     
==========================================
  Files          91      121      +30     
  Lines        7013     9755    +2742     
==========================================
+ Hits         6612     9157    +2545     
- Misses        401      598     +197     

☔ 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.

@cosmicBboy cosmicBboy closed this Jul 3, 2025
@cosmicBboy cosmicBboy reopened this Jul 3, 2025
@cosmicBboy
Copy link
Collaborator

LGTM! and congrats on your first contribution to pandera @gfilaci ! 🚀

@cosmicBboy cosmicBboy merged commit 971cae8 into unionai-oss:main Jul 3, 2025
383 of 388 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants