Skip to content

GH-47029: [Archery] Fix generation of RunEndsField #47034

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Alex-PLACET
Copy link

@Alex-PLACET Alex-PLACET commented Jul 9, 2025

Rationale for this change

Fix incorrect array generation in Archery

What changes are included in this PR?

Fix an issue issue in Archery Integration which generate wrong number of values for run-end encoded.

Are these changes tested?

In the CI

Are there any user-facing changes?

The JSONs generated by Archery integration

Copy link

github-actions bot commented Jul 9, 2025

⚠️ GitHub issue #47029 has been automatically assigned in GitHub to PR creator.

@github-actions github-actions bot added the awaiting review Awaiting review label Jul 9, 2025
@Alex-PLACET Alex-PLACET force-pushed the archery_fix_run_end_encoded_generation branch from 9bd32c1 to e558efa Compare July 9, 2025 08:35
@Alex-PLACET Alex-PLACET force-pushed the archery_fix_run_end_encoded_generation branch from ef17707 to a7b4472 Compare July 9, 2025 08:48

if name is None:
name = self.name
return PrimitiveColumn(name, size, is_valid, values)
return PrimitiveColumn(name, int(runs_count), is_valid, values)
Copy link
Member

Choose a reason for hiding this comment

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

This seems ok on the face of it, but needs an adaptation on the C++ side if we want the decoded REE array to have a length equal to runs_count.

The alternative would be pass to runs_count here, which might also work better for Go and nanoarrow (the two other Arrow implementations that support REE currently).

@paleolimbot @zeroshade What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting review Awaiting review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants