Skip to content

fix(arrow/scalar): format interval scalars in String - #1115

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

fix(arrow/scalar): format interval scalars in String#1115
zeroshade merged 1 commit into
apache:mainfrom
fallintoplace:fix/scalar-interval-string

Conversation

@fallintoplace

@fallintoplace fallintoplace commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Rationale for this change

String returns three dots for valid interval scalars because the generic string cast is not supported. The DayTime error also reports the wrong interval type.

What changes are included in this PR?

Format month intervals directly and use the existing JSON representation for day-time and month-day-nano intervals. Correct the related error messages.

Are these changes tested?

  • go test ./arrow/scalar

Are there any user-facing changes?

Yes. Interval scalar String output is now meaningful for the supported interval types.

@fallintoplace fallintoplace changed the title fix(arrow/scalar): format interval scalar values fix(arrow/scalar): format interval values in String Aug 5, 2026
@fallintoplace fallintoplace changed the title fix(arrow/scalar): format interval values in String fix(arrow/scalar): format interval scalars in String Aug 6, 2026
@fallintoplace
fallintoplace force-pushed the fix/scalar-interval-string branch from b9159d0 to 905598d Compare August 6, 2026 17:36
@zeroshade
zeroshade merged commit 175d48b 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