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

Function SliceArrayFromJSON

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

Source from the content-addressed store, hash-verified

66};
67
68std::shared_ptr<Array> SliceArrayFromJSON(const std::shared_ptr<DataType>& ty,
69 std::string_view json, int64_t offset = 0,
70 int64_t length = -1) {
71 auto array = *ArrayFromJSONString(ty, json);
72 if (length != -1) {
73 return array->Slice(offset, length);
74 } else {
75 return array->Slice(offset);
76 }
77}
78
79template <typename BuilderType>
80std::shared_ptr<Array> BinaryArrayFromStrings(

Callers 1

TestSessionFunction · 0.85

Calls 2

ArrayFromJSONStringFunction · 0.85
SliceMethod · 0.45

Tested by 1

TestSessionFunction · 0.68