[jira] [Comment Edited] (HIVE-17048) Pass HiveOperation info to HiveSemanticAnalyzerHook through HiveSemanticAnalyzerHookContext
[ https://issues.apache.org/jira/browse/HIVE-17048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16077493#comment-16077493 ] Mohit Sabharwal edited comment on HIVE-17048 at 7/7/17 2:22 PM: +1, LGTM was (Author: mohitsabharwal): 1, LGTM > Pass HiveOperation info to HiveSemanticAnalyzerHook through > HiveSemanticAnalyzerHookContext > --- > > Key: HIVE-17048 > URL: https://issues.apache.org/jira/browse/HIVE-17048 > Project: Hive > Issue Type: Improvement > Components: Hooks >Affects Versions: 2.1.1 >Reporter: Aihua Xu >Assignee: Aihua Xu > Attachments: HIVE-17048.1.patch, HIVE-17048.2.patch > > > Currently hive passes the following info to HiveSemanticAnalyzerHook through > HiveSemanticAnalyzerHookContext (see > https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/Driver.java#L553). > But the operation type (HiveOperation) is also needed in some cases, e.g., > when integrating with Sentry. > {noformat} > hookCtx.setConf(conf); > hookCtx.setUserName(userName); > hookCtx.setIpAddress(SessionState.get().getUserIpAddress()); > hookCtx.setCommand(command); > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Comment Edited] (HIVE-17048) Pass HiveOperation info to HiveSemanticAnalyzerHook through HiveSemanticAnalyzerHookContext
[ https://issues.apache.org/jira/browse/HIVE-17048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16075702#comment-16075702 ] Aihua Xu edited comment on HIVE-17048 at 7/6/17 12:41 AM: -- patch-1: simple fix to pass HiveOperation through the context. was (Author: aihuaxu): patch-1: simple fix to pass HiveOperation to the context. > Pass HiveOperation info to HiveSemanticAnalyzerHook through > HiveSemanticAnalyzerHookContext > --- > > Key: HIVE-17048 > URL: https://issues.apache.org/jira/browse/HIVE-17048 > Project: Hive > Issue Type: Improvement > Components: Hooks >Affects Versions: 2.1.1 >Reporter: Aihua Xu >Assignee: Aihua Xu > Attachments: HIVE-17048.1.patch > > > Currently hive passes the following info to HiveSemanticAnalyzerHook through > HiveSemanticAnalyzerHookContext (see > https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/Driver.java#L553). > But the operation type (HiveOperation) is also needed in some cases, e.g., > when integrating with Sentry. > {noformat} > hookCtx.setConf(conf); > hookCtx.setUserName(userName); > hookCtx.setIpAddress(SessionState.get().getUserIpAddress()); > hookCtx.setCommand(command); > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029)