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

Method SetField

cpp/src/arrow/type.cc:1438–1445  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 3

TESTFunction · 0.45
Schema__SetFieldFunction · 0.45

Calls 3

num_fieldsMethod · 0.95
ReplaceVectorElementFunction · 0.85
InvalidFunction · 0.70

Tested by 1

TESTFunction · 0.36