This is an automated email from the ASF dual-hosted git repository.
zyk 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 c3ebb19b027 Remove useless schema fetch when show timeseries without
order by heat (#9923)
c3ebb19b027 is described below
commit c3ebb19b0271750aed87a019406882913a335ad9
Author: Marcos_Zyk <[email protected]>
AuthorDate: Tue May 23 20:46:51 2023 +0800
Remove useless schema fetch when show timeseries without order by heat
(#9923)
---
.../main/java/org/apache/iotdb/db/mpp/plan/analyze/AnalyzeVisitor.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git
a/server/src/main/java/org/apache/iotdb/db/mpp/plan/analyze/AnalyzeVisitor.java
b/server/src/main/java/org/apache/iotdb/db/mpp/plan/analyze/AnalyzeVisitor.java
index c49f2e17680..84bd905ec6c 100644
---
a/server/src/main/java/org/apache/iotdb/db/mpp/plan/analyze/AnalyzeVisitor.java
+++
b/server/src/main/java/org/apache/iotdb/db/mpp/plan/analyze/AnalyzeVisitor.java
@@ -2526,7 +2526,6 @@ public class AnalyzeVisitor extends
StatementVisitor<Analysis, MPPQueryContext>
PathPatternTree patternTree = new PathPatternTree();
patternTree.appendPathPattern(showTimeSeriesStatement.getPathPattern());
SchemaPartition schemaPartitionInfo =
partitionFetcher.getSchemaPartition(patternTree);
- ISchemaTree schemaTree = schemaFetcher.fetchSchema(patternTree, context);
analysis.setSchemaPartitionInfo(schemaPartitionInfo);
Map<Integer, Template> templateMap =
@@ -2537,7 +2536,7 @@ public class AnalyzeVisitor extends
StatementVisitor<Analysis, MPPQueryContext>
patternTree.constructTree();
// request schema fetch API
logger.debug("[StartFetchSchema]");
- schemaTree = schemaFetcher.fetchSchema(patternTree, context);
+ ISchemaTree schemaTree = schemaFetcher.fetchSchema(patternTree, context);
logger.debug("[EndFetchSchema]]");
analyzeLastSource(