Skip to content

Commit

Permalink
HIVE-28260: CreateTableEvent wrongly skips authorizing DFS_URI for ma…
Browse files Browse the repository at this point in the history
…naged table. (#5250). (Ayush Saxena, reviewed by Sourabh Badhya, Attila Turoczy)
  • Loading branch information
ayushtkn authored May 15, 2024
1 parent 2e4346e commit 73af4cd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ private List<HivePrivilegeObject> getOutputHObjs() {
ret.add(getHivePrivilegeObject(database));
ret.add(getHivePrivilegeObject(table));

if (StringUtils.isNotEmpty(uri) && table.getTableType() != TableType.EXTERNAL_TABLE.toString()) {
if (StringUtils.isNotEmpty(uri) && !TableType.EXTERNAL_TABLE.toString().equalsIgnoreCase(table.getTableType())) {
ret.add(new HivePrivilegeObject(HivePrivilegeObjectType.DFS_URI, null, uri));
}

Expand Down

0 comments on commit 73af4cd

Please sign in to comment.