Skip to content

GH-1190: Reserve view slots for empty view vector values#1192

Open
goutamadwant wants to merge 1 commit into
apache:mainfrom
goutamadwant:fix/GH-1190-view-buffer-empty-values
Open

GH-1190: Reserve view slots for empty view vector values#1192
goutamadwant wants to merge 1 commit into
apache:mainfrom
goutamadwant:fix/GH-1190-view-buffer-empty-values

Conversation

@goutamadwant

Copy link
Copy Markdown

What's Changed

Fixes BaseVariableWidthViewVector.handleSafe so setSafe reserves a full 16-byte view slot for the target index even when the value length is zero.

Adds coverage for empty values written through the first view-buffer boundary for both ViewVarCharVector and ViewVarBinaryVector.

Tests

  • mvn -pl vector -am -Dtest=TestVariableWidthViewVector#testSetSafeEmptyValueAtViewBufferBoundary -Dsurefire.failIfNoSpecifiedTests=false test
  • mvn -pl vector -am -Dtest=TestVariableWidthViewVector -Dsurefire.failIfNoSpecifiedTests=false test

Closes #1190.

@github-actions

Copy link
Copy Markdown

Thank you for opening a pull request!

Please label the PR with one or more of:

  • bug-fix
  • chore
  • dependencies
  • documentation
  • enhancement

Also, add the 'breaking-change' label if appropriate.

See CONTRIBUTING.md for details.

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.

[Java] BaseVariableWidthViewVector.handleSafe under-allocates the view buffer for empty (zero-length) values → IndexOutOfBoundsException

1 participant