Caideyipi commented on code in PR #16425:
URL: https://github.com/apache/iotdb/pull/16425#discussion_r2357272577
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/analyze/cache/schema/DataNodeSchemaCache.java:
##########
@@ -113,18 +98,27 @@ public void releaseWriteLock() {
* @param measurements
* @return timeseries partialPath and its SchemaEntity
*/
- public ClusterSchemaTree get(PartialPath devicePath, String[] measurements) {
- return timeSeriesSchemaCache.get(devicePath, measurements);
- }
-
- public ClusterSchemaTree get(PartialPath fullPath) {
- ClusterSchemaTree clusterSchemaTree =
- deviceUsingTemplateSchemaCache.get(fullPath.getDevicePath());
- if (clusterSchemaTree == null || clusterSchemaTree.isEmpty()) {
- return timeSeriesSchemaCache.get(fullPath);
- } else {
- return clusterSchemaTree;
+ public ClusterSchemaTree get(final PartialPath devicePath, final String[]
measurements) {
+ final ClusterSchemaTree tree = new ClusterSchemaTree();
+ final IDeviceSchema schema = deviceSchemaCache.getDeviceSchema(devicePath);
+ if (!(schema instanceof DeviceNormalSchema)) {
+ return tree;
+ }
Review Comment:
This may be a template and is in a normal process.
--
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]