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

Method Upper

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

Source from the content-addressed store, hash-verified

312}
313
314StringVal StringFunctions::Upper(FunctionContext* context, const StringVal& str) {
315 if (str.is_null) return StringVal::null();
316 if (context->impl()->GetConstFnAttr(FunctionContextImpl::UTF8_MODE)) {
317 return UpperUtf8(context, str);
318 }
319 return UpperAscii(context, str);
320}
321
322StringVal StringFunctions::UpperAscii(FunctionContext* context, const StringVal& str) {
323 // Not in UTF-8 mode, only English alphabetic characters will be converted.

Callers

nothing calls this directly

Calls 2

GetConstFnAttrMethod · 0.80
implMethod · 0.80

Tested by

no test coverage detected