This is an automated email from the ASF dual-hosted git repository. jiangtian pushed a commit to branch ignore_non_tsfile in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 19902bd74d8bad0edab3b49c9efa40775a75751c Author: Tian Jiang <[email protected]> AuthorDate: Thu Feb 5 19:09:44 2026 +0800 Ignore non-tsfile when importing tsfile --- .../main/java/org/apache/iotdb/tool/tsfile/ImportTsFileScanTool.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/tsfile/ImportTsFileScanTool.java b/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/tsfile/ImportTsFileScanTool.java index 4891f425486..fe520502ec3 100644 --- a/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/tsfile/ImportTsFileScanTool.java +++ b/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/tsfile/ImportTsFileScanTool.java @@ -28,6 +28,7 @@ public class ImportTsFileScanTool { private static final String RESOURCE = ".resource"; private static final String MODS = ".mods"; + private static final String TSFILE = ".tsfile"; private static final LinkedBlockingQueue<String> tsfileQueue = new LinkedBlockingQueue<>(); private static final Set<String> tsfileSet = new HashSet<>(); @@ -43,7 +44,7 @@ public class ImportTsFileScanTool { if (file.isFile()) { if (file.getName().endsWith(RESOURCE) || file.getName().endsWith(MODS)) { resourceOrModsSet.add(file.getAbsolutePath()); - } else { + } else if (file.getName().endsWith(TSFILE)) { tsfileSet.add(file.getAbsolutePath()); tsfileQueue.put(file.getAbsolutePath()); }
