Skip to content

Commit

Permalink
(Fix)(nereids) modify create view privilege check error message
Browse files Browse the repository at this point in the history
  • Loading branch information
feiniaofeiafei committed Apr 15, 2024
1 parent e421bfe commit 0d34013
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ public void validate(ConnectContext ctx) throws UserException {
// check privilege
if (!Env.getCurrentEnv().getAccessManager().checkTblPriv(ctx, new TableName(viewName.getCtl(), viewName.getDb(),
viewName.getTbl()), PrivPredicate.CREATE)) {
ErrorReport.reportAnalysisException(ErrorCode.ERR_SPECIFIC_ACCESS_DENIED_ERROR, "CREATE");
ErrorReport.reportAnalysisException(ErrorCode.ERR_TABLE_ACCESS_DENIED_ERROR,
PrivPredicate.CREATE.getPrivs().toString(), viewName.getTbl());
}
Set<String> colSets = Sets.newTreeSet(String.CASE_INSENSITIVE_ORDER);
for (Column col : finalCols) {
Expand Down

0 comments on commit 0d34013

Please sign in to comment.