| 35 | namespace { |
| 36 | |
| 37 | Result<std::shared_ptr<Array>> REEFromJSON(const std::shared_ptr<DataType>& ree_type, |
| 38 | const std::string& json) { |
| 39 | auto ree_type_ptr = checked_cast<const RunEndEncodedType*>(ree_type.get()); |
| 40 | auto array = ArrayFromJSON(ree_type_ptr->value_type(), json); |
| 41 | ARROW_ASSIGN_OR_RAISE( |
| 42 | auto datum, RunEndEncode(array, RunEndEncodeOptions{ree_type_ptr->run_end_type()})); |
| 43 | return datum.make_array(); |
| 44 | } |
| 45 | |
| 46 | void CheckSearchSorted(const Datum& values, const Datum& needles, |
| 47 | SearchSortedOptions::Side side, const std::string& expected_json) { |
no test coverage detected