Skip to content

fix(scalar): hash list values logically#928

Open
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix/list-scalar-logical-hash
Open

fix(scalar): hash list values logically#928
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix/list-scalar-logical-hash

Conversation

@fallintoplace

Copy link
Copy Markdown
Contributor

What

Hash list scalar values from their logical length, validity, and recursively hashed elements instead of physical ArrayData metadata. This keeps equal list scalars backed by independent arrays or slices on the same hash path.

Tests

  • go test ./arrow/scalar ./arrow/array -count=1
  • GOOS=linux GOARCH=386 go test -c -o /dev/null ./arrow/scalar
  • pre-commit run golangci-lint-full --all-files

Regression coverage includes independent backing arrays, zero-copy slices with different offsets, extra leading/trailing values, and different validity bitmap padding.

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

1 participant