Skip to content

vector/vbuild: handle vector.Empty in Builder.Write#7010

Merged
nwt merged 1 commit into
mainfrom
vbuild-vector.Empty
Jun 2, 2026
Merged

vector/vbuild: handle vector.Empty in Builder.Write#7010
nwt merged 1 commit into
mainfrom
vbuild-vector.Empty

Conversation

@nwt
Copy link
Copy Markdown
Member

@nwt nwt commented Jun 2, 2026

Any vbuild.Builder.Write implementation can receive a vector.Empty as its vector.Any parameter but many don't expect that and panic. Fix that by checking for a zero-length parameter in all implementations (except noneBuilder and nullBuilder, where we can just call vector.Any.Len).

Any vbuild.Builder.Write implementation can receive a vector.Empty as
its vector.Any parameter but many don't expect that and panic.  Fix that
by checking for a zero-length parameter in all implementations (except
noneBuilder and nullBuilder, where we can just call vector.Any.Len).
@nwt nwt requested a review from a team June 2, 2026 16:27
@nwt nwt merged commit 6a259db into main Jun 2, 2026
2 checks passed
@nwt nwt deleted the vbuild-vector.Empty branch June 2, 2026 16:32
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