Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix initialization error in to_arrow for empty string views (#16033)
When converting an empty string view to arrow, we don't bother with copies from device, but rather create the arrow arrays directly. The offset buffer is therefore a singleton int32 array with zero in it. Previously, the initialization of this array was incorrect, since mutable_data() returns a uint8_t pointer, and so setting the single element could leave 24 of the 32 bits uninitialized. Fix this by using memset instead to zero out the full buffer. Authors: - Lawrence Mitchell (https://github.com/wence-) Approvers: - David Wendt (https://github.com/davidwendt) - Bradley Dice (https://github.com/bdice) URL: #16033
- Loading branch information