JackieTien97 commented on a change in pull request #2063:
URL: https://github.com/apache/iotdb/pull/2063#discussion_r525622957
##########
File path: server/src/main/java/org/apache/iotdb/db/metadata/MTree.java
##########
@@ -107,8 +109,12 @@ static long getLastTimeStamp(MeasurementMNode node,
QueryContext queryContext) {
return node.getCachedLast().getTimestamp();
} else {
try {
- last = calculateLastPairForOneSeriesLocally(node.getPartialPath(),
- node.getSchema().getType(), queryContext, null,
Collections.emptySet());
+ QueryDataSource dataSource = QueryResourceManager.getInstance().
+ getQueryDataSource(node.getPartialPath(), queryContext, null);
+ LastPointReader lastReader = new LastPointReader(node.getPartialPath(),
+ node.getSchema().getType(), Collections.emptySet(),
queryContext,
Review comment:
it should be a Collections.single() instead of an emptySet()
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]