Skip to content

Conversation

@dangotbanned
Copy link
Member

@dangotbanned dangotbanned commented Dec 27, 2025

Description

Chapter 6 gets us closer to the recently-introduced DslPlan::Pivot.

But you're probably reading this because the PR finally adds support for pivot on pyarrow>=20 😄

Important

This was a pretty complicated one

After I figured out how pyarrow.compute.pivot_wider worked, I discovered it didn't natively support:

  1. Any kind of aggregate_function
  2. Multiple on columns

So ... after quite a journey, I've got those working too 🥳

Related issues

`pivot` will need to check from `options` and either `dataframe`, `functions`, or `group_by`
Still needs a lot of work, but it is definitely possible
@dangotbanned dangotbanned marked this pull request as ready for review December 29, 2025 19:11
@dangotbanned dangotbanned merged commit a1a1645 into oh-nodes Dec 30, 2025
31 of 35 checks passed
@dangotbanned dangotbanned deleted the expr-ir/pivot branch December 30, 2025 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request internal pyarrow Issue is related to pyarrow backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants