Skip to content

Conversation

@caicancai
Copy link
Contributor

Improve the Scalar::cast_to_non_extension invariant by adding a descriptive assert message when called with an Extension dtype. This keeps the internal contract strict (panic on misuse) while making debugging easier if the invariant is ever violated.

Signed-off-by: cancaicai <2356672992@qq.com>
@robert3005 robert3005 added the changelog/chore A trivial change label Jan 18, 2026
@robert3005 robert3005 changed the title perf: clarify Scalar::cast_to_non_extension invariant assert message chore: clarify Scalar::cast_to_non_extension invariant assert message Jan 18, 2026
@codecov
Copy link

codecov bot commented Jan 18, 2026

Codecov Report

❌ Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 82.94%. Comparing base (fa5eeda) to head (167206d).
⚠️ Report is 1 commits behind head on develop.

Files with missing lines Patch % Lines
vortex-scalar/src/scalar.rs 66.66% 1 Missing ⚠️

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@robert3005 robert3005 merged commit 953c00c into vortex-data:develop Jan 18, 2026
48 of 50 checks passed
danking pushed a commit that referenced this pull request Feb 6, 2026
…#6016)

Improve the Scalar::cast_to_non_extension invariant by adding a
descriptive assert message when called with an Extension dtype. This
keeps the internal contract strict (panic on misuse) while making
debugging easier if the invariant is ever violated.

Signed-off-by: cancaicai <2356672992@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/chore A trivial change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants