Skip to content

Commit d095d1b

Browse files
thisisnicCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 809f578 commit d095d1b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

r/src/array_to_vector.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ struct Converter_String : public Converter {
293293
// StringViewArray uses a different memory layout (views + data buffers) rather
294294
// than offsets, so skip the offset-based fast path and fall through to the
295295
// GetView()-based element loop below.
296+
if (array->type_id() != Type::STRING_VIEW) {
296297
auto p_offset = array->data()->GetValues<int32_t>(1);
297298
if (!p_offset) {
298299
return Status::Invalid("Invalid offset buffer");

0 commit comments

Comments
 (0)