HxpSerein commented on code in PR #14813:
URL: https://github.com/apache/iotdb/pull/14813#discussion_r1952880573


##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/sql/parser/AstBuilder.java:
##########
@@ -1190,6 +1191,14 @@ public Node 
visitRemoveDataNodeStatement(RelationalSqlParser.RemoveDataNodeState
     return new RemoveDataNode(nodeIds);
   }
 
+  @Override
+  public Node visitRemoveConfigNodeStatement(
+      RelationalSqlParser.RemoveConfigNodeStatementContext ctx) {
+    Integer nodeId =
+        Integer.parseInt(ctx.INTEGER_VALUE() == null ? "-1" : 
ctx.INTEGER_VALUE().getText());

Review Comment:
   Thank you for your correction, it cannot be null



##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/parser/ASTVisitor.java:
##########
@@ -4226,6 +4227,13 @@ public Statement 
visitRemoveDataNode(IoTDBSqlParser.RemoveDataNodeContext ctx) {
     return new RemoveDataNodeStatement(dataNodeIDs);
   }
 
+  @Override
+  public Statement 
visitRemoveConfigNode(IoTDBSqlParser.RemoveConfigNodeContext ctx) {

Review Comment:
   fixed



-- 
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]

Reply via email to