mirror of
https://github.com/apache/arrow.git
synced 2026-10-29 17:15:39 +08:00
comments
This commit is contained in:
1 parent
6aa3181b83
commit
5f3650f909
1 file changed
+5
-5
@@ -305,8 +305,8 @@ Status ListArrayFromArrays(const Array& offsets, const Array& values, MemoryPool
|
||||
return Status::OK();
|
||||
}
|
||||
|
||||
std::shared_ptr<Array> SliceArrayWithOffsets(const Array& array, int64_t begin,
|
||||
int64_t end) {
|
||||
static std::shared_ptr<Array> SliceArrayWithOffsets(const Array& array, int64_t begin,
|
||||
int64_t end) {
|
||||
return array.Slice(begin, end - begin);
|
||||
}
|
||||
|
||||
@@ -349,9 +349,9 @@ Result<std::shared_ptr<Array>> FlattenListArray(const ListArrayT& list_array,
|
||||
return non_null_fragments[0];
|
||||
}
|
||||
|
||||
std::shared_ptr<Array> result;
|
||||
RETURN_NOT_OK(Concatenate(non_null_fragments, memory_pool, &result));
|
||||
return result;
|
||||
std::shared_ptr<Array> flattened;
|
||||
RETURN_NOT_OK(Concatenate(non_null_fragments, memory_pool, &flattened));
|
||||
return flattened;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in new issue
Block a user