Skip to content

Commit

Permalink
[chore](Nereids) forbid some commands fallback when parse failed
Browse files Browse the repository at this point in the history
1. CreateTableLikeCommand
2. CreateViewCommand
3. AlterViewCommand
  • Loading branch information
morrySnow committed May 22, 2024
1 parent 11dbf5a commit 8369ed2
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@

package org.apache.doris.qe;

import org.apache.doris.analysis.AlterViewStmt;
import org.apache.doris.analysis.CreateTableAsSelectStmt;
import org.apache.doris.analysis.CreateTableLikeStmt;
import org.apache.doris.analysis.CreateTableStmt;
import org.apache.doris.analysis.CreateViewStmt;
import org.apache.doris.analysis.DeleteStmt;
import org.apache.doris.analysis.ExplainOptions;
import org.apache.doris.analysis.InsertStmt;
Expand Down Expand Up @@ -316,7 +319,10 @@ public void executeQuery(MysqlCommand mysqlCommand, String originStmt) throws Ex
|| s instanceof UpdateStmt
|| s instanceof DeleteStmt
|| s instanceof CreateTableAsSelectStmt
|| s instanceof CreateTableStmt)) {
|| s instanceof CreateTableStmt
|| s instanceof CreateTableLikeStmt
|| s instanceof CreateViewStmt
|| s instanceof AlterViewStmt)) {
String errMsg;
Throwable exception = null;
if (nereidsParseException != null) {
Expand Down

0 comments on commit 8369ed2

Please sign in to comment.