Copilot commented on code in PR #16196:
URL: https://github.com/apache/iotdb/pull/16196#discussion_r2286651844
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/sql/ast/RemoveRegion.java:
##########
@@ -54,21 +54,21 @@ public boolean equals(Object obj) {
return false;
}
RemoveRegion another = (RemoveRegion) obj;
- return regionId == another.regionId && dataNodeId == another.dataNodeId;
+ return regionIds.equals(another.regionIds) && dataNodeId ==
another.dataNodeId;
}
@Override
public String toString() {
- return String.format("remove region %d from %d", regionId, dataNodeId);
+ return String.format("remove region %d from %d", regionIds, dataNodeId);
Review Comment:
The format string uses `%d` for regionIds which is a List<Integer>, but `%d`
expects an integer. This will cause a formatting error. Should use `%s` instead
to properly display the list.
```suggestion
return String.format("remove region %s from %d", regionIds, dataNodeId);
```
--
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]