saihemanth-cloudera commented on code in PR #6078:
URL: https://github.com/apache/hive/pull/6078#discussion_r2380428059
##########
ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/metastore/events/ReadDatabaseEvent.java:
##########
@@ -40,10 +41,14 @@ public ReadDatabaseEvent(PreEventContext preEventContext) {
super(preEventContext);
}
- @Override public HiveMetaStoreAuthzInfo getAuthzContext() {
- HiveMetaStoreAuthzInfo ret =
- new HiveMetaStoreAuthzInfo(preEventContext,
HiveOperationType.SHOWDATABASES, getInputHObjs(), getOutputHObjs(),
- COMMAND_STR);
+ @Override
+ public HiveMetaStoreAuthzInfo getAuthzContext() {
+ List<HivePrivilegeObject> inputHObjs = getInputHObjs();
+ List<HivePrivilegeObject> outputHObjs = getOutputHObjs();
+ HiveAuthzContext authzContext = buildAuthzContext(COMMAND_STR);
+ HiveMetaStoreAuthzInfo ret = new HiveMetaStoreAuthzInfo(preEventContext,
HiveOperationType.SHOWDATABASES,
+ inputHObjs, outputHObjs, COMMAND_STR, authzContext);
Review Comment:
nit: getInputHObjs(), getOutputHObjs() as we are not really using these
variables: inputHObjs, outputHObjs
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]