MCPcopy Create free account
hub / github.com/apache/arrow / ChunkedArrayFromJSONString

Function ChunkedArrayFromJSONString

cpp/src/arrow/json/from_string.cc:1075–1084  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1073}
1074
1075Result<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
1086Result<std::shared_ptr<Array>> DictArrayFromJSONString(
1087 const std::shared_ptr<DataType>& type, std::string_view indices_json,

Callers 2

TestSessionFunction · 0.85
RunExampleFunction · 0.85

Calls 6

ArrayFromJSONStringFunction · 0.85
emplace_backMethod · 0.80
backMethod · 0.80
ARROW_ASSIGN_OR_RAISEFunction · 0.50
reserveMethod · 0.45
sizeMethod · 0.45

Tested by 1

TestSessionFunction · 0.68