| 446 | } |
| 447 | |
| 448 | Status ValidateValue(const Scalar& s, const Scalar& value) { |
| 449 | const auto st = Validate(value); |
| 450 | if (!st.ok()) { |
| 451 | return st.WithMessage( |
| 452 | s.type->ToString(), |
| 453 | " scalar fails validation for underlying value: ", st.message()); |
| 454 | } |
| 455 | return Status::OK(); |
| 456 | } |
| 457 | |
| 458 | Status ValidateDenseUnion(const DenseUnionScalar& s, int child_id) { |
| 459 | const auto& union_type = checked_cast<const DenseUnionType&>(*s.type); |