This is an automated email from the ASF dual-hosted git repository. ejttianyu pushed a commit to branch fix_export_csv_0-11-2 in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit aed1dd23eaebf159fc63a07b1e50a9eac0744805 Author: EJTTianyu <[email protected]> AuthorDate: Thu Jan 21 17:10:47 2021 +0800 fix export csv bug --- cli/src/main/java/org/apache/iotdb/tool/ExportCsv.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/src/main/java/org/apache/iotdb/tool/ExportCsv.java b/cli/src/main/java/org/apache/iotdb/tool/ExportCsv.java index 7a33eb4..87670e7 100644 --- a/cli/src/main/java/org/apache/iotdb/tool/ExportCsv.java +++ b/cli/src/main/java/org/apache/iotdb/tool/ExportCsv.java @@ -350,7 +350,7 @@ public class ExportCsv extends AbstractCsvTool { throws SQLException, IOException { for (int j = 2; j <= count; j++) { if (j < count) { - if ("null".equals(rs.getString(j))) { + if (rs.getString(j) == null) { bw.write(","); } else { if(typeList.get(j-1) == Types.VARCHAR) { @@ -360,7 +360,7 @@ public class ExportCsv extends AbstractCsvTool { } } } else { - if ("null".equals(rs.getString(j))) { + if (rs.getString(j) == null) { bw.write("\n"); } else { if(typeList.get(j-1) == Types.VARCHAR) {
