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

Method ValidateBinaryScalar

cpp/src/arrow/scalar.cc:556–566  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

554 }
555
556 Status ValidateBinaryScalar(const BaseBinaryScalar& s) {
557 if (s.is_valid && !s.value) {
558 return Status::Invalid(s.type->ToString(),
559 " scalar is marked valid but doesn't have a value");
560 }
561 if (!s.is_valid && s.value) {
562 return Status::Invalid(s.type->ToString(),
563 " scalar is marked null but has a value");
564 }
565 return Status::OK();
566 }
567};
568
569template <typename T, size_t N>

Callers

nothing calls this directly

Calls 3

InvalidFunction · 0.70
OKFunction · 0.70
ToStringMethod · 0.45

Tested by

no test coverage detected