| 57 | } |
| 58 | |
| 59 | std::shared_ptr<Array> DictExtensionFromJSON(const std::shared_ptr<DataType>& type, |
| 60 | const std::string& json) { |
| 61 | auto ext_type = checked_pointer_cast<ExtensionType>(type); |
| 62 | auto storage = ArrayFromJSON(ext_type->storage_type(), json); |
| 63 | auto ext_data = storage->data()->Copy(); |
| 64 | ext_data->type = ext_type; |
| 65 | return MakeArray(ext_data); |
| 66 | } |
| 67 | |
| 68 | // ---------------------------------------------------------------------- |
| 69 | // Dictionary tests |
no test coverage detected