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

Method EffectiveUser

be/src/exprs/utility-functions-ir.cc:149–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149StringVal UtilityFunctions::EffectiveUser(FunctionContext* ctx) {
150 StringVal effective_user(ctx->effective_user());
151 // An empty string indicates the user wasn't set in the session or in the query request.
152 return (effective_user.len > 0) ? effective_user : StringVal::null();
153}
154
155StringVal UtilityFunctions::Version(FunctionContext* ctx) {
156 return AnyValUtil::FromString(ctx, GetVersionString());

Callers

nothing calls this directly

Calls 1

effective_userMethod · 0.80

Tested by

no test coverage detected