luoluoyuyu commented on code in PR #18271:
URL: https://github.com/apache/iotdb/pull/18271#discussion_r3679665296


##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/sql/ast/LoadTsFile.java:
##########
@@ -103,8 +109,11 @@ private LoadTsFile(
 
     try {
       this.tsFiles =
-          
org.apache.iotdb.db.queryengine.plan.statement.crud.LoadTsFileStatement.processTsFile(
-              new File(filePath), validateSourcePath);
+          validateInternalDataDir
+              ? 
org.apache.iotdb.db.queryengine.plan.statement.crud.LoadTsFileStatement
+                  .processTsFile(new File(filePath), validateSourcePath)
+              : 
org.apache.iotdb.db.queryengine.plan.statement.crud.LoadTsFileStatement

Review Comment:
   Thanks for the reminder. processTsFileForPipe intentionally bypasses the 
managed-directory check because Pipe receiver/hardlink sources can be placed 
under IoTDB-managed paths. We have restricted this branch to createForPipe() 
call sites guarded by an existing isGeneratedByPipe context; normal table-model 
LOAD still uses processTsFile(...) and keeps the managed-directory validation. 



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