| 1073 | } |
| 1074 | |
| 1075 | Result<std::shared_ptr<ChunkedArray>> ChunkedArrayFromJSONString( |
| 1076 | const std::shared_ptr<DataType>& type, const std::vector<std::string>& json_strings) { |
| 1077 | ArrayVector out_chunks; |
| 1078 | out_chunks.reserve(json_strings.size()); |
| 1079 | for (const std::string& chunk_json : json_strings) { |
| 1080 | out_chunks.emplace_back(); |
| 1081 | ARROW_ASSIGN_OR_RAISE(out_chunks.back(), ArrayFromJSONString(type, chunk_json)); |
| 1082 | } |
| 1083 | return std::make_shared<ChunkedArray>(std::move(out_chunks), type); |
| 1084 | } |
| 1085 | |
| 1086 | Result<std::shared_ptr<Array>> DictArrayFromJSONString( |
| 1087 | const std::shared_ptr<DataType>& type, std::string_view indices_json, |