| 361 | |
| 362 | template <typename T> |
| 363 | std::vector<T> to_vector(const char *data, size_t size) { |
| 364 | std::vector<T> vec(size); |
| 365 | memcpy(vec.data(), data, size * sizeof(T)); |
| 366 | return vec; |
| 367 | } |
| 368 | |
| 369 | template <typename VectorType> |
| 370 | Status fill_doc_sparse_vector(const arrow::StructArray *typed_arr, |