Skip to content

fix(arrow/scalar): format extension values from storage scalars - #1111

Merged
zeroshade merged 1 commit into
apache:mainfrom
fallintoplace:fix/scalar-extension-string
Aug 7, 2026
Merged

fix(arrow/scalar): format extension values from storage scalars#1111
zeroshade merged 1 commit into
apache:mainfrom
fallintoplace:fix/scalar-extension-string

Conversation

@fallintoplace

@fallintoplace fallintoplace commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Rationale for this change

Extension.String tries to cast the extension scalar to utf8, but Extension.CastTo only accepts the same extension type. Valid extension scalars therefore return three dots.

What changes are included in this PR?

Use the storage scalar's string representation for valid extension values and keep null extensions formatted as null.

Are these changes tested?

  • go test ./arrow/scalar

Are there any user-facing changes?

No API changes. This corrects the reported behavior while preserving the existing ownership and compatibility contracts.

@fallintoplace fallintoplace changed the title fix(arrow/scalar): format extension scalar values fix(arrow/scalar): format extension values from storage scalars Aug 5, 2026
@zeroshade
zeroshade merged commit 02020e0 into apache:main Aug 7, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants