From f619e9315d7055845ccc24ae05f3981c34104b3c Mon Sep 17 00:00:00 2001 From: zhangdong <493738387@qq.com> Date: Fri, 31 May 2024 13:58:42 +0800 Subject: [PATCH] [enhance](auth) hive ranger support datamask (#35698) pick from master #35112 Functions supported by Doris need to be configured through Custom, otherwise it will throw exception Can not found function 'xxx' --- .../ranger/hive/RangerHiveAccessController.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/catalog/authorizer/ranger/hive/RangerHiveAccessController.java b/fe/fe-core/src/main/java/org/apache/doris/catalog/authorizer/ranger/hive/RangerHiveAccessController.java index f746607303..6f4178d771 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/catalog/authorizer/ranger/hive/RangerHiveAccessController.java +++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/authorizer/ranger/hive/RangerHiveAccessController.java @@ -24,7 +24,6 @@ import org.apache.doris.cluster.ClusterNamespace; import org.apache.doris.common.AuthorizationException; import org.apache.doris.common.ThreadPoolManager; import org.apache.doris.datasource.InternalCatalog; -import org.apache.doris.mysql.privilege.DataMaskPolicy; import org.apache.doris.mysql.privilege.PrivPredicate; import com.google.common.collect.Maps; @@ -42,7 +41,6 @@ import java.util.Collection; import java.util.Date; import java.util.List; import java.util.Map; -import java.util.Optional; import java.util.Set; import java.util.concurrent.ScheduledThreadPoolExecutor; import java.util.concurrent.TimeUnit; @@ -171,12 +169,6 @@ public class RangerHiveAccessController extends RangerAccessController { checkPrivileges(currentUser, convertToAccessType(wanted), resources); } - @Override - public Optional evalDataMaskPolicy(UserIdentity currentUser, String ctl, String db, String tbl, - String col) { - return Optional.empty(); - } - @Override public boolean checkResourcePriv(UserIdentity currentUser, String resourceName, PrivPredicate wanted) { return false;