MCPcopy Create free account
hub / github.com/apache/impala / StringValEqualsStr

Function StringValEqualsStr

be/src/udf/udf-test.cc:358–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356const std::vector<FunctionContext::TypeDesc> FunctionCtxGuard::arg_types;
357
358bool StringValEqualsStr(const StringVal& string_val, const std::string& str) {
359 return str.length() == string_val.len &&
360 std::memcmp(str.c_str(), string_val.ptr, str.length()) == 0;
361}
362
363void CheckStringValCopyFromSucceeds(const std::string& str) {
364 FunctionCtxGuard ctx_guard;

Callers 1

Calls 1

lengthMethod · 0.45

Tested by

no test coverage detected