[fix](Nereids) support update without filter (#33214)

This commit is contained in:
morrySnow
2024-04-03 19:04:10 +08:00
committed by yiguolei
parent 2b1ab89b5b
commit 96867ff3fd
2 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ statementBase
| explain? cte? UPDATE tableName=multipartIdentifier tableAlias
SET updateAssignmentSeq
fromClause?
whereClause #update
whereClause? #update
| explain? cte? DELETE FROM tableName=multipartIdentifier
partitionSpec? tableAlias
(USING relations)?

View File

@ -828,7 +828,7 @@ public class LogicalPlanBuilder extends DorisParserBaseVisitor<Object> {
if (ctx.fromClause() != null) {
query = withRelations(query, ctx.fromClause().relations().relation());
}
query = withFilter(query, Optional.of(ctx.whereClause()));
query = withFilter(query, Optional.ofNullable(ctx.whereClause()));
String tableAlias = null;
if (ctx.tableAlias().strictIdentifier() != null) {
tableAlias = ctx.tableAlias().getText();