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

Method ProcessREE

cpp/src/arrow/c/bridge.cc:1391–1405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1389 }
1390
1391 Status ProcessREE() {
1392 RETURN_NOT_OK(f_parser_.CheckAtEnd());
1393 RETURN_NOT_OK(CheckNumChildren(2));
1394 ARROW_ASSIGN_OR_RAISE(auto run_ends_field, MakeChildField(0));
1395 ARROW_ASSIGN_OR_RAISE(auto values_field, MakeChildField(1));
1396 if (!is_run_end_type(run_ends_field->type()->id())) {
1397 return Status::Invalid("Expected a valid run-end integer type, but struct has ",
1398 run_ends_field->type()->ToString());
1399 }
1400 if (values_field->type()->id() == Type::RUN_END_ENCODED) {
1401 return Status::Invalid("ArrowArray struct contains a nested run-end encoded array");
1402 }
1403 type_ = run_end_encoded(run_ends_field->type(), values_field->type());
1404 return Status::OK();
1405 }
1406
1407 Result<std::shared_ptr<Field>> MakeChildField(int64_t child_id) {
1408 const auto& child = child_importers_[child_id];

Callers

nothing calls this directly

Calls 8

is_run_end_typeFunction · 0.85
run_end_encodedFunction · 0.85
CheckAtEndMethod · 0.80
InvalidFunction · 0.50
OKFunction · 0.50
idMethod · 0.45
typeMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected