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