You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by "citrusreticulata (via GitHub)" <gi...@apache.org> on 2023/05/26 09:44:40 UTC
[GitHub] [iotdb] citrusreticulata commented on a diff in pull request #9937: Support insertion in logical view
citrusreticulata commented on code in PR #9937:
URL: https://github.com/apache/iotdb/pull/9937#discussion_r1206508928
##########
server/src/main/java/org/apache/iotdb/db/metadata/cache/DataNodeSchemaCache.java:
##########
@@ -127,7 +127,23 @@ public ClusterSchemaTree getMatchedSchemaWithTemplate(PartialPath path) {
}
public List<Integer> computeWithoutTemplate(ISchemaComputation schemaComputation) {
- return timeSeriesSchemaCache.compute(schemaComputation);
+ List<Integer> result = timeSeriesSchemaCache.computeAndRecordLogicalView(schemaComputation);
+ schemaComputation.recordSizeOfLogicalViewSchemaListNow();
+ return result;
+ }
+
+ /**
+ * This function is used to process logical view schema list in statement. It will try to find the
+ * source paths of those views in cache. If it found sources, measurement schemas of sources will
+ * be recorded in measurement schema list; else the views will be recorded as missed. The indexes
+ * of missed views and full paths of their source paths will be returned.
+ *
+ * @param schemaComputation the statement you want to process
+ * @return The indexes of missed views and full paths of their source paths will be returned.
+ */
+ public Pair<List<Integer>, List<String>> computeLogicalViewWithoutTemplate(
Review Comment:
fixed
--
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: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org