starocean999 commented on code in PR #47951:
URL: https://github.com/apache/doris/pull/47951#discussion_r1957520463
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java:
##########
@@ -5720,6 +5725,29 @@ public LogicalPlan visitShowAnalyze(ShowAnalyzeContext
ctx) {
return new ShowAnalyzeCommand(tableName, jobId, stateKey, stateValue,
isAuto);
}
+ @Override
+ public LogicalPlan visitAddBackendClause(AddBackendClauseContext ctx) {
+ List<String> hostPorts = ctx.hostPorts.stream()
+ .map(e -> e.getText().replace("'", ""))
+ .collect(Collectors.toList());
+ Map<String, String> properties = visitPropertyClause(ctx.properties);
+ AlterSystemOp alterSystemOp = new AddBackendOp(hostPorts, properties);
+ return new AlterSystemCommand(alterSystemOp);
+ }
+
+ @Override
+ public LogicalPlan
visitDropBackendClause(DorisParser.DropBackendClauseContext ctx) {
+ List<String> hostPorts = ctx.hostPorts.stream()
+ .map(e -> e.getText().replace("'", ""))
Review Comment:
```suggestion
.map(e -> stripQuotes(e.getText()))
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]