liyuheng55555 commented on code in PR #14634:
URL: https://github.com/apache/iotdb/pull/14634#discussion_r1914576506
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/parser/ASTVisitor.java:
##########
@@ -4177,6 +4181,30 @@ public Statement
visitMigrateRegion(IoTDBSqlParser.MigrateRegionContext ctx) {
Integer.parseInt(ctx.toId.getText()));
}
+ @Override
+ public Statement
visitReconstructRegion(IoTDBSqlParser.ReconstructRegionContext ctx) {
+ int dataNodeId = Integer.parseInt(ctx.targetDataNodeId.getText());
+ List<Integer> regionIds =
+ ctx.INTEGER_LITERAL().stream()
+ .map(ParseTree::getText)
+ .map(Integer::parseInt)
+ .collect(Collectors.toList());
+ regionIds.remove(regionIds.size() - 1);
Review Comment:
modified antlr grammer to fix this
--
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]