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

Method RemoveField

cpp/src/arrow/type.cc:1431–1436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1429}
1430
1431Result<std::shared_ptr<StructType>> StructType::RemoveField(int i) const {
1432 if (i < 0 || i >= this->num_fields()) {
1433 return Status::Invalid("Invalid column index to remove field.");
1434 }
1435 return std::make_shared<StructType>(internal::DeleteVectorElement(children_, i));
1436}
1437
1438Result<std::shared_ptr<StructType>> StructType::SetField(
1439 int i, const std::shared_ptr<Field>& field) const {

Callers 5

TESTFunction · 0.80
TESTFunction · 0.80
MutateByKeyFunction · 0.80
Schema__RemoveFieldFunction · 0.80

Calls 3

num_fieldsMethod · 0.95
DeleteVectorElementFunction · 0.85
InvalidFunction · 0.70

Tested by 3

TESTFunction · 0.64
TESTFunction · 0.64
MutateByKeyFunction · 0.64