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

Method Utf8Length

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

Source from the content-addressed store, hash-verified

286}
287
288IntVal StringFunctions::Utf8Length(FunctionContext* context, const StringVal& str) {
289 if (str.is_null) return IntVal::null();
290 return IntVal(CountUtf8Chars(str.ptr, str.len));
291}
292
293// Marks as IR_ALWAYS_INLINE since this is called in MaskFunctions::MaskHash().
294// So the caller can also replace GetConstFnAttr() calls in codegen.

Callers

nothing calls this directly

Calls 2

IntValClass · 0.85
CountUtf8CharsFunction · 0.85

Tested by

no test coverage detected