| 1433 | } |
| 1434 | |
| 1435 | Result<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 | |
| 1444 | Result<std::shared_ptr<DataType>> DecimalType::Make(Type::type type_id, int32_t precision, |
| 1445 | int32_t scale) { |
no test coverage detected