[
https://issues.apache.org/jira/browse/HIVE-26789?focusedWorklogId=829877&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-829877
]
ASF GitHub Bot logged work on HIVE-26789:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 29/Nov/22 20:26
Start Date: 29/Nov/22 20:26
Worklog Time Spent: 10m
Work Description: ayushtkn commented on code in PR #3813:
URL: https://github.com/apache/hive/pull/3813#discussion_r1035247107
##########
service/src/java/org/apache/hive/service/cli/operation/Operation.java:
##########
@@ -237,7 +238,9 @@ protected void createOperationLog() {
* Set up some preconditions, or configurations.
*/
protected void beforeRun() {
- ShimLoader.getHadoopShims().setHadoopQueryContext(queryState.getQueryId());
+ CallerContext.setCurrent(new CallerContext.Builder("Check").build());
Review Comment:
Aah, my bad. Came through my initial dev testing & I forgot to remove it :-(
Issue Time Tracking
-------------------
Worklog Id: (was: 829877)
Time Spent: 40m (was: 0.5h)
> Add UserName in CallerContext for queries
> -----------------------------------------
>
> Key: HIVE-26789
> URL: https://issues.apache.org/jira/browse/HIVE-26789
> Project: Hive
> Issue Type: Improvement
> Reporter: Ayush Saxena
> Assignee: Ayush Saxena
> Priority: Major
> Labels: pull-request-available
> Time Spent: 40m
> Remaining Estimate: 0h
>
> HDFS Audit logs if impersonation is false, tracks only the Hive user in the
> audit log, Can pass the actual user as part of the CallerContext, so that can
> be logged as well for better tracking
--
This message was sent by Atlassian Jira
(v8.20.10#820010)