Skip to content

fix: Preserve categorical categories in Arrow schema export - #405

Open
Oliver Borchert (borchero) wants to merge 1 commit into
mainfrom
fix/preserve-categorical-categories
Open

Oliver Borchert (borchero) wants to merge 1 commit into
mainfrom
fix/preserve-categorical-categories

Conversation

@borchero

Copy link
Copy Markdown
Member

Motivation

pl.Schema(DataframelySchema) drops categorical names, namespaces, and physical types.

Changes

Update the Polars fork pin to include pola-rs/polars#29385 and add a reminder to switch back once the fix is released.

@codecov

codecov Bot commented Sep 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (05ce6d6) to head (716868d).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #405   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           46        46           
  Lines         2616      2616           
=========================================
  Hits          2616      2616           

☔ View full report in Codecov by Harness.
📢 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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

Only a minor test-structure nit remains, with no approval-blocking issues.

Review effort: Lite
Findings: None

What changed in this PR

Preserves categorical metadata in Polars and Arrow schema exports by updating fork pins and adding regression coverage.

Changes:

  • Adds categorical schema preservation tests.
  • Expands Arrow metadata coverage.
  • Updates Polars dependencies and lockfile.
File Description
tests/​columns/​test_polars_schema.py Adds categorical preservation tests.
tests/​columns/​test_arrow_pycapsule.py Extends categorical Arrow metadata coverage.
Cargo.toml Updates the Polars fork pin.
Cargo.lock Refreshes locked dependencies.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants