Skip to content

fix(arrow/array): fix panic in dictionary builders - #517

Merged
zeroshade merged 1 commit into
apache:mainfrom
zeroshade:fix-dictionary-panics
Sep 24, 2025
Merged

fix(arrow/array): fix panic in dictionary builders#517
zeroshade merged 1 commit into
apache:mainfrom
zeroshade:fix-dictionary-panics

Conversation

@zeroshade

@zeroshade zeroshade commented Sep 23, 2025

Copy link
Copy Markdown
Member

Rationale for this change

The underlying hash table is in terms of primitive types (int64/int32/int16, etc.) not the top-level types (arrow.Duration, arrow.Timestamp, etc.) which results in a panic mismatch when appending values.

fixes #516

What changes are included in this PR?

Checking and validating the type when appendValue is called to ensure correct type coercion.

Are these changes tested?

A unit test is added in this change.

Are there any user-facing changes?

A case that previously caused a panic will now be successful.

@amoeba amoeba left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1

It looks like the switch handles all the types it needs as far as I can tell. CI failure looks unrelated.

@zeroshade
zeroshade merged commit cb9c80e into apache:main Sep 24, 2025
26 of 27 checks passed
@zeroshade
zeroshade deleted the fix-dictionary-panics branch March 27, 2026 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants