ericpai commented on a change in pull request #4571:
URL: https://github.com/apache/iotdb/pull/4571#discussion_r769198372
##########
File path:
cluster/src/main/java/org/apache/iotdb/cluster/query/ClusterPlanExecutor.java
##########
@@ -307,7 +307,12 @@ protected int getNodesNumInGivenLevel(PartialPath path,
int level) throws Metada
// if path doesn't end with **.
// e.g. we have SG root.sg.a and root.sg.b, the query path is root.sg, we
should return the map
// with key root.sg.a and root.sg.b instead of an empty one.
- PartialPath wildcardPath =
path.concatNode(IoTDBConstant.MULTI_LEVEL_PATH_WILDCARD);
+ PartialPath wildcardPath;
+ if
(!path.getMeasurement().equals(IoTDBConstant.MULTI_LEVEL_PATH_WILDCARD)) {
+ wildcardPath = path.concatNode(IoTDBConstant.MULTI_LEVEL_PATH_WILDCARD);
+ } else {
+ wildcardPath = path;
+ }
Review comment:
Thanks for your comments. The codes have been refined. Does this PR need
to be separeted to different ones? If so, I will close this one.
--
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]