You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2022/01/18 02:12:41 UTC

[iotdb] branch master updated: Fix IoTDBInsertMultiRowsIT bug and Spotless apply (#4866)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new d67bd62  Fix IoTDBInsertMultiRowsIT bug and Spotless apply (#4866)
d67bd62 is described below

commit d67bd628b4f38088b015efac40697ad55486be33
Author: Marcos_Zyk <38...@users.noreply.github.com>
AuthorDate: Tue Jan 18 10:12:02 2022 +0800

    Fix IoTDBInsertMultiRowsIT bug and Spotless apply (#4866)
---
 .../apache/iotdb/db/integration/IoTDBInsertMultiRowIT.java   |  6 +++---
 jdbc/src/test/java/org/apache/iotdb/jdbc/UtilsTest.java      | 12 +++++++-----
 2 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/integration/src/test/java/org/apache/iotdb/db/integration/IoTDBInsertMultiRowIT.java b/integration/src/test/java/org/apache/iotdb/db/integration/IoTDBInsertMultiRowIT.java
index 08a3e45..b4e5b1e 100644
--- a/integration/src/test/java/org/apache/iotdb/db/integration/IoTDBInsertMultiRowIT.java
+++ b/integration/src/test/java/org/apache/iotdb/db/integration/IoTDBInsertMultiRowIT.java
@@ -134,12 +134,12 @@ public class IoTDBInsertMultiRowIT {
     try {
       Statement st1 = connection.createStatement();
       st1.execute(
-          "insert into root.t1.wf01.wt01(timestamp, temperature) values(1, 1.0) (2, 'hello'), (3, true)");
+          "insert into root.t1.wf01.wt01(timestamp, s1) values(1, 1.0) (2, 'hello'), (3, true)");
       fail();
     } catch (SQLException e) {
       assertEquals(
-          "org.apache.iotdb.db.exception.StorageEngineException: failed to insert measurements [temperature] caused by For input string: \"'hello'\";"
-              + "org.apache.iotdb.db.exception.StorageEngineException: failed to insert measurements [temperature] caused by For input string: \"true\";",
+          "org.apache.iotdb.db.exception.StorageEngineException: failed to insert measurements [s1] caused by For input string: \"'hello'\";"
+              + "org.apache.iotdb.db.exception.StorageEngineException: failed to insert measurements [s1] caused by For input string: \"true\";",
           e.getMessage());
     }
   }
diff --git a/jdbc/src/test/java/org/apache/iotdb/jdbc/UtilsTest.java b/jdbc/src/test/java/org/apache/iotdb/jdbc/UtilsTest.java
index 3c888ca..a8ec175 100644
--- a/jdbc/src/test/java/org/apache/iotdb/jdbc/UtilsTest.java
+++ b/jdbc/src/test/java/org/apache/iotdb/jdbc/UtilsTest.java
@@ -18,18 +18,20 @@
  */
 package org.apache.iotdb.jdbc;
 
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
-
-import java.util.Properties;
 import org.apache.iotdb.rpc.RpcUtils;
 import org.apache.iotdb.rpc.TSStatusCode;
 import org.apache.iotdb.service.rpc.thrift.TSStatus;
+
 import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
 
+import java.util.Properties;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
+
 public class UtilsTest {
 
   @Before