Skip to content

fix(array): format date arrays in String - #1068

Open
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix/array-date-string-formatting
Open

fix(array): format date arrays in String#1068
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix/array-date-string-formatting

Conversation

@fallintoplace

@fallintoplace fallintoplace commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Fixes #63

Problem

Date32 and Date64 arrays inherited the numeric array String implementation, so their values were rendered as raw integers instead of dates. This was inconsistent with their existing ValueStr and JSON formatting.

Change

Give date arrays a String implementation that formats each non-null value through ValueStr. Null markers, slice behavior, and the established array layout are preserved.

Coverage

The tests cover Date32, Date64, null values, negative dates, and sliced arrays. Generated builder expectations are updated to match the user-visible date representation.

Validation

go test ./arrow/array

@fallintoplace
fallintoplace requested a review from zeroshade as a code owner July 30, 2026 19:50
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.

[Go] Date32 and Date64 String() methods return numbers instead of dates

1 participant