shanesveller opened a new pull request, #6385:
URL: https://github.com/apache/arrow-rs/pull/6385
# Which issue does this PR close?
Closes #6384.
# Rationale for this change
The panic observed in #6384 was within `StringViewBuilder::get_value`,
because the `string_tracker` hash table was not reset as part of `finish()`:
https://github.com/apache/arrow-rs/blob/e838e62d197cf0f6f653aa47aa00b5e5fb0b5f11/arrow-array/src/builder/generic_bytes_view_builder.rs#L365-L373
If the builder saw continued use, and `append_value` was called with a
previously-observed value, the hash table would return an index to a
now-emptied buffer after slicing into it here:
https://github.com/apache/arrow-rs/blob/e838e62d197cf0f6f653aa47aa00b5e5fb0b5f11/arrow-array/src/builder/generic_bytes_view_builder.rs#L257-L259
# What changes are included in this PR?
Builders will now clear the `string_tracker` hash-table as part of a revised
`finish` definition.
# Are there any user-facing changes?
Not to my knowledge.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]