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

Method ValidateValue

cpp/src/arrow/scalar.cc:446–454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 4

ValidateFunction · 0.85
OKFunction · 0.70
okMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected