This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 96ec184e9cd [enhance](auth)hive ranger support datamask (#35112)
96ec184e9cd is described below
commit 96ec184e9cd18135e7ee3bd205348597fb8dbbca
Author: zhangdong <[email protected]>
AuthorDate: Thu May 23 22:43:02 2024 +0800
[enhance](auth)hive ranger support datamask (#35112)
Functions supported by Doris need to be configured through Custom,
otherwise it will throw exception Can not found function 'xxx'
---
.../authorizer/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 7d8547a90bf..c2298345a5d 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
@@ -25,7 +25,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;
@@ -43,7 +42,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;
@@ -178,12 +176,6 @@ public class RangerHiveAccessController extends
RangerAccessController {
return false;
}
- @Override
- public Optional<DataMaskPolicy> 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;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]