jt2594838 commented on code in PR #17170:
URL: https://github.com/apache/iotdb/pull/17170#discussion_r2767892816


##########
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/pipe/datastructure/pattern/TreePattern.java:
##########
@@ -888,6 +890,11 @@ private static class TrieNode {
 
     /** Adds a path to the Trie. */
     public void add(final PartialPath path) {
+      if (containsComplexWildcard(path)) {
+        complexPatterns.add(path);
+        return;
+      }
+

Review Comment:
   Could you place the judge in the loop below? Otherwise, a path without 
complex wildcard will be traversed twice.



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