Caideyipi commented on code in PR #16575:
URL: https://github.com/apache/iotdb/pull/16575#discussion_r2431965460
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/event/common/tsfile/parser/TsFileInsertionEventParserProvider.java:
##########
@@ -99,8 +99,9 @@ public TsFileInsertionEventParser provide() throws
IOException {
// Use scan container to save memory
if ((double)
PipeDataNodeResourceManager.memory().getUsedMemorySizeInBytes()
- /
PipeDataNodeResourceManager.memory().getTotalNonFloatingMemorySizeInBytes()
- > PipeTsFilePublicResource.MEMORY_SUFFICIENT_THRESHOLD) {
+ /
PipeDataNodeResourceManager.memory().getTotalNonFloatingMemorySizeInBytes()
+ > PipeTsFilePublicResource.MEMORY_SUFFICIENT_THRESHOLD
+ && treePattern.isSingle()) {
return new TsFileInsertionEventScanParser(
Review Comment:
Surely not. Just check whether the device or measurement fits the pattern
one by one.
--
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]