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

Method SetField

cpp/src/arrow/type.cc:1435–1442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1433}
1434
1435Result<std::shared_ptr<StructType>> StructType::SetField(
1436 int i, const std::shared_ptr<Field>& field) const {
1437 if (i < 0 || i >= this->num_fields()) {
1438 return Status::Invalid("Invalid column index to set field.");
1439 }
1440 return std::make_shared<StructType>(
1441 internal::ReplaceVectorElement(children_, i, field));
1442}
1443
1444Result<std::shared_ptr<DataType>> DecimalType::Make(Type::type type_id, int32_t precision,
1445 int32_t scale) {

Callers 3

type_test.ccFile · 0.45
Schema__SetFieldFunction · 0.45

Calls 3

num_fieldsMethod · 0.95
ReplaceVectorElementFunction · 0.85
InvalidFunction · 0.70

Tested by

no test coverage detected