Skip to content

fix: Correctly create pyarrow dictionary for enums#344

Open
Oliver Borchert (borchero) wants to merge 1 commit into
mainfrom
polars-1.41
Open

fix: Correctly create pyarrow dictionary for enums#344
Oliver Borchert (borchero) wants to merge 1 commit into
mainfrom
polars-1.41

Conversation

@borchero
Copy link
Copy Markdown
Member

Motivation

Nightly CI for the just-released polars v1.41 uncovered a bug.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (be94364) to head (44f252d).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #344   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           56        56           
  Lines         3427      3427           
=========================================
  Hits          3427      3427           

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

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the project to test against Polars v1.41 and adjusts Enum’s PyArrow schema mapping to match Polars’ Arrow export semantics for enums.

Changes:

  • Bump feature.polars-latest from 1.39.* to 1.41.* (and refresh pixi.lock accordingly).
  • Create PyArrow dictionary types for Enum columns with ordered=True.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
pixi.toml Updates the “latest” Polars feature pin to 1.41.*.
pixi.lock Regenerates the lockfile to reflect the updated Polars versions across environments/platforms.
dataframely/columns/enum.py Sets ordered=True when building the PyArrow dictionary dtype for Enum.

Comment thread pixi.toml
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