You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ji...@apache.org on 2026/02/05 11:10:07 UTC

(iotdb) branch ignore_non_tsfile created (now 19902bd74d8)

This is an automated email from the ASF dual-hosted git repository.

jiangtian pushed a change to branch ignore_non_tsfile
in repository https://gitbox.apache.org/repos/asf/iotdb.git


      at 19902bd74d8 Ignore non-tsfile when importing tsfile

This branch includes the following new commits:

     new 19902bd74d8 Ignore non-tsfile when importing tsfile

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(iotdb) 01/01: Ignore non-tsfile when importing tsfile

Posted by ji...@apache.org.
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 <jt...@163.com>
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());
       }