[Fix](nereids) add checkBlockRules() check for create view and alter view (#34104)
This commit is contained in:
@ -36,6 +36,7 @@ public class AlterViewCommand extends Command implements ForwardWithSync {
|
||||
|
||||
@Override
|
||||
public void run(ConnectContext ctx, StmtExecutor executor) throws Exception {
|
||||
executor.checkBlockRules();
|
||||
alterViewInfo.init(ctx);
|
||||
alterViewInfo.validate(ctx);
|
||||
AlterViewStmt alterViewStmt = alterViewInfo.translateToLegacyStmt(ctx);
|
||||
|
||||
@ -36,6 +36,7 @@ public class CreateViewCommand extends Command implements ForwardWithSync {
|
||||
|
||||
@Override
|
||||
public void run(ConnectContext ctx, StmtExecutor executor) throws Exception {
|
||||
executor.checkBlockRules();
|
||||
createViewInfo.init(ctx);
|
||||
createViewInfo.validate(ctx);
|
||||
CreateViewStmt createViewStmt = createViewInfo.translateToLegacyStmt(ctx);
|
||||
|
||||
Reference in New Issue
Block a user