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

Function SmallintArrayFromJSON

cpp/src/arrow/compute/kernels/scalar_cast_test.cc:4371–4376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4369}
4370
4371std::shared_ptr<Array> SmallintArrayFromJSON(const std::string& json_data) {
4372 auto arr = ArrayFromJSON(int16(), json_data);
4373 auto ext_data = arr->data()->Copy();
4374 ext_data->type = smallint();
4375 return MakeArray(ext_data);
4376}
4377
4378std::shared_ptr<Array> TinyintArrayFromJSON(const std::string& json_data) {
4379 auto arr = ArrayFromJSON(int8(), json_data);

Callers 1

TESTFunction · 0.85

Calls 5

ArrayFromJSONFunction · 0.85
smallintFunction · 0.85
MakeArrayFunction · 0.70
CopyMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected