This is an automated email from the ASF dual-hosted git repository.

jackietien pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new 234dab783ee Fix return value of fetch schmea with incorrect template 
info
234dab783ee is described below

commit 234dab783eef84ef63b7a503a5756e0911efd112
Author: Chen YZ <[email protected]>
AuthorDate: Mon May 13 14:44:49 2024 +0800

    Fix return value of fetch schmea with incorrect template info
---
 .../db/queryengine/plan/analyze/schema/ClusterSchemaFetcher.java   | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/analyze/schema/ClusterSchemaFetcher.java
 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/analyze/schema/ClusterSchemaFetcher.java
index 3e1c1735a87..a0ea490b990 100644
--- 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/analyze/schema/ClusterSchemaFetcher.java
+++ 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/analyze/schema/ClusterSchemaFetcher.java
@@ -92,12 +92,11 @@ public class ClusterSchemaFetcher implements ISchemaFetcher 
{
     Set<PartialPath> explicitDevicePatternList = new HashSet<>();
     int explicitDevicePatternCount = 0;
     for (PartialPath pattern : pathPatternList) {
-      if (!pattern.hasWildcard()) {
-        explicitPathList.add(pattern);
-      } else if (pattern.hasExplicitDevice()
-          && templateManager.checkTemplateSetInfo(pattern) != null) {
+      if (pattern.hasExplicitDevice() && 
templateManager.checkTemplateSetInfo(pattern) != null) {
         explicitDevicePatternList.add(pattern.getDevicePath());
         explicitDevicePatternCount++;
+      } else if (!pattern.hasWildcard()) {
+        explicitPathList.add(pattern);
       }
     }
 

Reply via email to