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

Method ValidateStringScalar

cpp/src/arrow/scalar.cc:544–552  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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