| 54 | } |
| 55 | |
| 56 | Result<std::shared_ptr<Array>> REEFromJSON(const std::shared_ptr<DataType>& ree_type, |
| 57 | const std::string& json) { |
| 58 | auto ree_type_ptr = checked_cast<const RunEndEncodedType*>(ree_type.get()); |
| 59 | auto array = ArrayFromJSON(ree_type_ptr->value_type(), json); |
| 60 | ARROW_ASSIGN_OR_RAISE( |
| 61 | auto datum, RunEndEncode(array, RunEndEncodeOptions{ree_type_ptr->run_end_type()})); |
| 62 | return datum.make_array(); |
| 63 | } |
| 64 | |
| 65 | Result<std::shared_ptr<Array>> FilterFromJSON( |
| 66 | const std::shared_ptr<DataType>& filter_type, const std::string& json) { |
no test coverage detected