[fix](Nereids) support update without filter (#33214)
This commit is contained in:
@ -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)?
|
||||
|
||||
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user