Skip to content

Implement AnyRee#9959

Open
Rich-T-kid wants to merge 3 commits intoapache:mainfrom
Rich-T-kid:rich-T-kid/Ree-AnyArray
Open

Implement AnyRee#9959
Rich-T-kid wants to merge 3 commits intoapache:mainfrom
Rich-T-kid:rich-T-kid/Ree-AnyArray

Conversation

@Rich-T-kid
Copy link
Copy Markdown
Contributor

Which issue does this PR close?

closes #9909.

Rationale for this change

makes the API simpler to work with & less code duplication

What changes are included in this PR?

Replace the per-key-type RunEndEncoded match arms in length/bit_length (arrow-string) and date_part (arrow-arith) with a single dispatch through the new AsArray::as_any_ree_opt/as_any_ree returning &dyn AnyRunEndArray, mirroring the existing dictionary handling. This removes the
now-unused ree_map! macro, leaving one trait-object code path for all Int16/Int32/Int64 run-end types.

Are these changes tested?

yes

Are there any user-facing changes?

no

@github-actions github-actions Bot added the arrow Changes to the arrow crate label May 11, 2026
Comment thread arrow-array/src/array/run_array.rs Outdated
Comment thread arrow-array/src/array/run_array.rs
Comment thread arrow-array/src/array/run_array.rs
@Rich-T-kid Rich-T-kid force-pushed the rich-T-kid/Ree-AnyArray branch from f398606 to d626ef8 Compare May 11, 2026 15:04
@Rich-T-kid Rich-T-kid force-pushed the rich-T-kid/Ree-AnyArray branch from d626ef8 to b7e7b73 Compare May 11, 2026 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arrow Changes to the arrow crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AnyRunArray trait

2 participants