JackieTien97 commented on code in PR #16691:
URL: https://github.com/apache/iotdb/pull/16691#discussion_r2488395989
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/operator/source/SeriesScanUtil.java:
##########
@@ -219,6 +219,14 @@ public void initQueryDataSource(QueryDataSource
dataSource) {
orderUtils.setCurSeqFileIndex(dataSource);
curUnseqFileIndex = 0;
+ List<TsFileResource> seqResources = dataSource.getSeqResources();
+ List<TsFileResource> unseqResources = dataSource.getUnseqResources();
+ if ((seqResources == null || seqResources.isEmpty())
+ && (unseqResources == null || unseqResources.isEmpty())) {
+ // no satisfied resources
+ return;
+ }
+
Review Comment:
put these into `QueryDataSource` as a public method.
--
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]