MarcosZyk commented on code in PR #11545:
URL: https://github.com/apache/iotdb/pull/11545#discussion_r1395411954
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/common/schematree/ISchemaTree.java:
##########
@@ -71,6 +70,20 @@ Pair<List<MeasurementPath>, Integer> searchMeasurementPaths(
void mergeSchemaTree(ISchemaTree schemaTree);
+ /**
+ * Check whether this schema tree has normal series(not template series).
+ *
+ * @return true if it has normal series, else false
+ */
+ boolean hasNormalTimeSeries();
Review Comment:
Seems TestOnly?
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/common/schematree/ClusterSchemaTree.java:
##########
@@ -44,23 +46,31 @@
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Deque;
+import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import static org.apache.iotdb.commons.conf.IoTDBConstant.PATH_ROOT;
import static org.apache.iotdb.commons.schema.SchemaConstant.ALL_MATCH_PATTERN;
+import static org.apache.iotdb.commons.schema.SchemaConstant.NON_TEMPLATE;
import static
org.apache.iotdb.db.queryengine.common.schematree.node.SchemaNode.SCHEMA_ENTITY_NODE;
import static
org.apache.iotdb.db.queryengine.common.schematree.node.SchemaNode.SCHEMA_MEASUREMENT_NODE;
public class ClusterSchemaTree implements ISchemaTree {
+ private static final ClusterTemplateManager templateManager =
+ ClusterTemplateManager.getInstance();
Review Comment:
Pass this into the ```deserialize``` method as a local param rather than a
global static attribute.
--
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]