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

Method ValidateStringScalar

cpp/src/arrow/scalar.cc:546–554  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

544 }
545
546 Status ValidateStringScalar(const BaseBinaryScalar& s) {
547 RETURN_NOT_OK(ValidateBinaryScalar(s));
548 if (s.is_valid && full_validation_) {
549 if (!::arrow::util::ValidateUTF8(s.value->data(), s.value->size())) {
550 return Status::Invalid(s.type->ToString(), " scalar contains invalid UTF8 data");
551 }
552 }
553 return Status::OK();
554 }
555
556 Status ValidateBinaryScalar(const BaseBinaryScalar& s) {
557 if (s.is_valid && !s.value) {

Callers

nothing calls this directly

Calls 6

InvalidFunction · 0.70
OKFunction · 0.70
ValidateUTF8Function · 0.50
dataMethod · 0.45
sizeMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected