| 189 | } |
| 190 | |
| 191 | Status MakeRandomListViewArray(const std::shared_ptr<Array>& child_array, int num_lists, |
| 192 | bool include_nulls, MemoryPool* pool, |
| 193 | std::shared_ptr<Array>* out) { |
| 194 | const auto seed = static_cast<uint32_t>(child_array->length()); |
| 195 | random::RandomArrayGenerator rand(seed); |
| 196 | |
| 197 | const double null_probability = include_nulls ? 0.5 : 0.0; |
| 198 | *out = rand.ListView(*child_array, /*length=*/num_lists, null_probability, |
| 199 | /*force_empty_nulls=*/false, /*coverage=*/0.9, |
| 200 | kDefaultBufferAlignment, pool); |
| 201 | return Status::OK(); |
| 202 | } |
| 203 | |
| 204 | Status MakeRandomLargeListViewArray(const std::shared_ptr<Array>& child_array, |
| 205 | int num_lists, bool include_nulls, MemoryPool* pool, |
no test coverage detected