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

Method Length

be/src/exprs/string-functions-ir.cc:260–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258}
259
260IntVal StringFunctions::Length(FunctionContext* context, const StringVal& str) {
261 if (str.is_null) return IntVal::null();
262 if (context->impl()->GetConstFnAttr(FunctionContextImpl::UTF8_MODE)) {
263 return Utf8Length(context, str);
264 }
265 return IntVal(str.len);
266}
267IntVal StringFunctions::Bytes(FunctionContext* context,const StringVal& str){
268 if(str.is_null) return IntVal::null();
269 return IntVal(str.len);

Callers

nothing calls this directly

Calls 3

IntValClass · 0.85
GetConstFnAttrMethod · 0.80
implMethod · 0.80

Tested by

no test coverage detected