From 18603deca8001948a717e4922ffc2d460e6f1720 Mon Sep 17 00:00:00 2001 From: Andrii Rosa Date: Tue, 28 Nov 2017 14:51:26 +0100 Subject: [PATCH] Reorder methods in HivePrivilegeInfo Extracted-From: https://github.com/prestodb/presto/pull/10904 --- .../prestosql/plugin/hive/metastore/HivePrivilegeInfo.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/presto-hive/src/main/java/io/prestosql/plugin/hive/metastore/HivePrivilegeInfo.java b/presto-hive/src/main/java/io/prestosql/plugin/hive/metastore/HivePrivilegeInfo.java index 117219e1631c..cb3cb48352b1 100644 --- a/presto-hive/src/main/java/io/prestosql/plugin/hive/metastore/HivePrivilegeInfo.java +++ b/presto-hive/src/main/java/io/prestosql/plugin/hive/metastore/HivePrivilegeInfo.java @@ -68,6 +68,13 @@ public boolean isGrantOption() return grantOption; } + @JsonProperty + public PrestoPrincipal getGrantee() + { + return grantee; + } + + public static Set parsePrivilege(PrivilegeGrantInfo userGrant) { boolean withGrantOption = userGrant.isGrantOption();