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

Function SliceArrayFromJSON

python/pyarrow/src/arrow/python/gdb.cc:61–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59};
60
61std::shared_ptr<Array> SliceArrayFromJSON(const std::shared_ptr<DataType>& ty,
62 std::string_view json, int64_t offset = 0,
63 int64_t length = -1) {
64 auto array = *ArrayFromJSONString(ty, json);
65 if (length != -1) {
66 return array->Slice(offset, length);
67 } else {
68 return array->Slice(offset);
69 }
70}
71
72} // namespace
73

Callers 1

TestSessionFunction · 0.85

Calls 2

ArrayFromJSONStringFunction · 0.85
SliceMethod · 0.45

Tested by 1

TestSessionFunction · 0.68