Reply
Highlighted
New Contributor
Posts: 5
Registered: ‎01-08-2018

UDF Question

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

Cloudera Employee
Posts: 347
Registered: ‎07-29-2015

Re: UDF Question

@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

New Contributor
Posts: 5
Registered: ‎01-08-2018

Re: UDF Question

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) ?

Announcements