| 1005 | } |
| 1006 | |
| 1007 | Result<std::shared_ptr<ChunkedArray>> ChunkedArrayFromJSONString( |
| 1008 | const std::shared_ptr<DataType>& type, const std::vector<std::string>& json_strings) { |
| 1009 | ArrayVector out_chunks; |
| 1010 | out_chunks.reserve(json_strings.size()); |
| 1011 | for (const std::string& chunk_json : json_strings) { |
| 1012 | out_chunks.emplace_back(); |
| 1013 | ARROW_ASSIGN_OR_RAISE(out_chunks.back(), ArrayFromJSONString(type, chunk_json)); |
| 1014 | } |
| 1015 | return std::make_shared<ChunkedArray>(std::move(out_chunks), type); |
| 1016 | } |
| 1017 | |
| 1018 | Result<std::shared_ptr<Array>> DictArrayFromJSONString( |
| 1019 | const std::shared_ptr<DataType>& type, std::string_view indices_json, |