Caideyipi opened a new pull request, #18986: URL: https://github.com/apache/iotdb/pull/18986
## Description Backport the tree-model CLI fixes from [0acff4971750](https://github.com/apache/iotdb/commit/0acff4971750046b6973c654fe16d7f5c3e9a333) (#18828) to `dev/1.3`. - Keep original CSV rows when batch insertion fails, retry individual device records, and write each failed input row once. Report import failures through the exit status and continue processing other queued files. - Export every device in tree-model SQL results, escape quoted text, preserve aligned NULLs and 1.3 DATE/BLOB formatting, and skip device records with no values. Propagate query and output failures to the exit status. - Archive TsFiles with their `.resource` and `.mods` files under their relative source paths. Check destination conflicts before modifying the group, preserve existing files, and return failure for load errors, archive errors, or unprocessed files. The backport adapts these changes to the 1.3 CLI implementation. It excludes 2.x table-model behavior, the relational grammar dependency, and Windows wrappers absent from this branch. ### Validation Spotless and Checkstyle passed. A fresh CLI build ran all 15 unit tests with no failures or errors, including CSV failure recovery, multi-device SQL export, NULL/quoted values, and TsFile archive conflicts and status handling. ```powershell $env:JAVA_TOOL_OPTIONS = '-Xmx512m -XX:+UseSerialGC -XX:ActiveProcessorCount=2' mvn -o spotless:apply -pl iotdb-client/cli mvn -o -pl iotdb-client/cli '-Dmaven.build.cache.enabled=false' '-Ddevelocity.off=true' clean test ``` This PR has: - [x] been self-reviewed. - [x] added regression tests for the backported behavior. ##### Key changed classes `AbstractDataTool`, `AsyncImportData`, `ImportData`, `ExportData`, `ImportTsFile`, `ImportTsFileBase`, `ImportTsFileOperation`, `ImportTsFileScanTool`. -- 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]
