Skip to content

GH-41: [Array] Make String and Binary consistent#165

Merged
zeroshade merged 3 commits intoapache:mainfrom
zeroshade:fix-consistency
Oct 22, 2024
Merged

GH-41: [Array] Make String and Binary consistent#165
zeroshade merged 3 commits intoapache:mainfrom
zeroshade:fix-consistency

Conversation

@zeroshade
Copy link
Copy Markdown
Member

Fixes #41

Makes the behavior of ValueOffset consistent between String and Binary arrays.

@zeroshade zeroshade requested a review from lidavidm October 17, 2024 18:37
if got, want := arr.ValueOffset(i), int(offsets[i]); got != want {
t.Fatalf("arr-offset-beg[%d]: got=%d, want=%d", i, got, want)
}
if got, want := arr.ValueOffset(i+1), int(offsets[i+1]); got != want {
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.

I guess we could validate ValueLen instead? Though maybe not really worth it

@zeroshade zeroshade merged commit 6843412 into apache:main Oct 22, 2024
@zeroshade zeroshade deleted the fix-consistency branch October 22, 2024 14:31
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] *array.Binary.ValueOffset doesn't work correctly

2 participants