I posted a question few days ago about how to capture current user
information in a UDF and the answer basically was to
use SessionState.getUserFromAuthenticator().

I am wondering if there is a similar mechanism to obtain query metadata
information such as the sql statement or the current database or the tables
being referred to in the sql query. Any ideas on how any or all of this
information can be captured in a hive UDF.

I would appreciate any help.
Thanks
Adeel

Reply via email to