[Bug](materialized-view) fix unmatch mv coz table name (#35444)
fix unmatch mv coz table name
This commit is contained in:
@ -272,6 +272,7 @@ public class CreateMaterializedViewStmt extends DdlStmt {
|
||||
SelectListItem selectListItem = selectList.getItems().get(i);
|
||||
|
||||
Expr selectListItemExpr = selectListItem.getExpr();
|
||||
selectListItemExpr.setDisableTableName(true);
|
||||
if (!(selectListItemExpr instanceof SlotRef) && !(selectListItemExpr instanceof FunctionCallExpr)
|
||||
&& !(selectListItemExpr instanceof ArithmeticExpr)) {
|
||||
throw new AnalysisException("The materialized view only support the single column or function expr. "
|
||||
|
||||
Reference in New Issue
Block a user