Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
whutpencil committed Aug 2, 2024
1 parent 2dad0a5 commit f6bfb52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2343,7 +2343,7 @@ public class Config extends ConfigBase {

@ConfField(mutable = true, masterOnly = true, description = {
"用于强制检查用户在建表或创建分区时对指定标签是否有权限,如果该参数为false,则允许用户在任意tag下建表或创建分区",
"Used to forcibly check whether the user has permission for a specified tag when creating a table or partition. "
"Used to forcibly check the user has permission for a specified tag when creating a table or partition. "
+ "If this parameter is false, it allows the user to create a table or partition under any tags"})
public static boolean check_resource_tag_when_creating_table = false;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1355,7 +1355,8 @@ private static void checkUserHasTagAuthForReplicaAllocation(ReplicaAllocation re
Set<Tag> missingTags = allocationTags.stream()
.filter(tag -> !tags.contains(tag))
.collect(Collectors.toSet());
throw new AnalysisException("User doesn't have tag auth: " + missingTags);
throw new AnalysisException(
String.format("User [%s] doesn't have tag auth: %s", qualifiedUser, missingTags));
}
}
}
Expand Down

0 comments on commit f6bfb52

Please sign in to comment.