You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ge...@apache.org on 2020/11/25 12:10:34 UTC

[iotdb] branch fix_import_csv created (now 4b287ce)

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

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


      at 4b287ce  fix import csv

This branch includes the following new commits:

     new 4b287ce  fix import csv

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: fix import csv

Posted by ge...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

geniuspig pushed a commit to branch fix_import_csv
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 4b287ceb09a783e8190abc46768038103c49cee0
Author: Boris <96...@qq.com>
AuthorDate: Wed Nov 25 20:09:41 2020 +0800

    fix import csv
---
 cli/src/main/java/org/apache/iotdb/tool/ImportCsv.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cli/src/main/java/org/apache/iotdb/tool/ImportCsv.java b/cli/src/main/java/org/apache/iotdb/tool/ImportCsv.java
index 0554d1e..721ad64 100644
--- a/cli/src/main/java/org/apache/iotdb/tool/ImportCsv.java
+++ b/cli/src/main/java/org/apache/iotdb/tool/ImportCsv.java
@@ -308,7 +308,7 @@ public class ImportCsv extends AbstractCsvTool {
       statement.execute("show timeseries "+ strHeadInfo[i]);
       ResultSet resultSet= statement.getResultSet();
       if (resultSet.next()) {
-        timeseriesDataType.put(strHeadInfo[i], resultSet.getString(2));
+        timeseriesDataType.put(strHeadInfo[i], resultSet.getString(4));
       } else {
         String errorInfo = String.format("Database cannot find %s in %s, stop import!",
             strHeadInfo[i], file.getAbsolutePath());