VGalaxies commented on code in PR #16575:
URL: https://github.com/apache/iotdb/pull/16575#discussion_r2431717733


##########
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:
   I'm not sure whether the implementation of scan parser will conflict with 
multi patterns?
   



-- 
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]

Reply via email to