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

wangchao316 pushed a commit to branch rel/1.2
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/rel/1.2 by this push:
     new 10012f977de [To rel/1.2] Fixed the prompt after CSV file import 
(#10825)
10012f977de is described below

commit 10012f977deae196969e46f753464255eb07d892
Author: Summer <[email protected]>
AuthorDate: Thu Aug 10 15:52:38 2023 +0800

    [To rel/1.2] Fixed the prompt after CSV file import (#10825)
---
 iotdb-client/cli/src/main/java/org/apache/iotdb/tool/ImportCsv.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/ImportCsv.java 
b/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/ImportCsv.java
index 838193a4f0a..8d8b3b7a964 100644
--- a/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/ImportCsv.java
+++ b/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/ImportCsv.java
@@ -478,7 +478,7 @@ public class ImportCsv extends AbstractCsvTool {
 
     records.forEach(
         recordObj -> {
-          if (Boolean.TRUE.equals(hasStarted.get())) {
+          if (Boolean.TRUE.equals(!hasStarted.get())) {
             hasStarted.set(true);
           } else if (pointSize.get() >= batchPointSize) {
             writeAndEmptyDataSet(deviceIds, times, typesList, valuesList, 
measurementsList, 3);

Reply via email to