Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

UDF Question

UDF Question

New Contributor

Hello,

 

I have a question regarding Impala UDF (written in Java).

Is there a way to call built-in Impala UDF function (i.e. effective_user) from Impala UDF ? 

 

Thanks

2 REPLIES 2

Re: UDF Question

Master Collaborator

@Brian100 not in general.

 

We do actually expose the effective user via the FunctionContext for your use case though - see https://github.com/apache/impala/blob/c14a0904005ce150e15820c8bb9ade94fb58ed56/be/src/udf/udf.h#L134

Re: UDF Question

New Contributor
Thanks !
When I call the effective_user from impala-shell it's working fine.
My question, how I can call the effective_user() from my implementation of UDF (written in Java) ?