You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Aihua Xu (JIRA)" <ji...@apache.org> on 2017/07/06 00:10:00 UTC
[jira] [Created] (HIVE-17048) Pass HiveOperation info to
HiveSemanticAnalyzerHook through HiveSemanticAnalyzerHookContext
Aihua Xu created HIVE-17048:
-------------------------------
Summary: 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
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)