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

Function TinyintArrayFromJSON

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

Source from the content-addressed store, hash-verified

4451}
4452
4453std::shared_ptr<Array> TinyintArrayFromJSON(const std::string& json_data) {
4454 auto arr = ArrayFromJSON(int8(), json_data);
4455 auto ext_data = arr->data()->Copy();
4456 ext_data->type = tinyint();
4457 return MakeArray(ext_data);
4458}
4459
4460TEST(Cast, ExtensionTypeToIntDowncast) {
4461 auto smallint = std::make_shared<SmallintType>();

Callers 1

TESTFunction · 0.85

Calls 5

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

Tested by

no test coverage detected