| 165 | } |
| 166 | |
| 167 | std::shared_ptr<RunEndEncodedArray> RunEndEncodedArrayFromJSON( |
| 168 | int64_t logical_length, const std::shared_ptr<DataType>& ree_type, |
| 169 | std::string_view run_ends_json, std::string_view values_json, |
| 170 | int64_t logical_offset = 0) { |
| 171 | auto& ree_type_ref = checked_cast<const RunEndEncodedType&>(*ree_type); |
| 172 | auto run_ends = ArrayFromJSON(ree_type_ref.run_end_type(), run_ends_json); |
| 173 | auto values = ArrayFromJSON(ree_type_ref.value_type(), values_json); |
| 174 | return RunEndEncodedArray::Make(logical_length, std::move(run_ends), |
| 175 | std::move(values), logical_offset) |
| 176 | .ValueOrDie(); |
| 177 | } |
| 178 | |
| 179 | template <typename RunEndType> |
| 180 | void TestBasicsWithREEs() { |
nothing calls this directly
no test coverage detected