morrySnow commented on code in PR #52570:
URL: https://github.com/apache/doris/pull/52570#discussion_r2176415676
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java:
##########
@@ -8007,10 +8007,7 @@ public UserDesc
visitGrantUserIdentify(DorisParser.GrantUserIdentifyContext ctx)
@Override
public LogicalPlan visitWarmUpCluster(DorisParser.WarmUpClusterContext
ctx) {
String dstCluster = ctx.destination.getText();
- String srcCluster = null;
- if (ctx.source != null) {
- srcCluster = ctx.source.getText();
- }
+ String srcCluster = ctx.source.getText();
Review Comment:
from grammer file, ctx.source could be null, why remove null check?
--
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]