You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2022/10/27 02:50:02 UTC

[GitHub] [iotdb] lyssom commented on a diff in pull request #7716: [To rel/0.13] [IOTDB-3624] Meet error when inserting data in SQL without timestamp

lyssom commented on code in PR #7716:
URL: https://github.com/apache/iotdb/pull/7716#discussion_r1006354157


##########
integration/src/test/java/org/apache/iotdb/db/integration/IoTDBInsertWithoutTimeIT.java:
##########
@@ -105,6 +105,17 @@ public void testInsertWithoutTime() throws SQLException, InterruptedException {
     st1.close();
   }
 
+  @Test
+  public void testInserthaventTime() throws SQLException, InterruptedException {

Review Comment:
   I think  have not = haven’t = Without. I will change it.



##########
integration/src/test/java/org/apache/iotdb/db/integration/IoTDBInsertWithoutTimeIT.java:
##########
@@ -105,6 +105,17 @@ public void testInsertWithoutTime() throws SQLException, InterruptedException {
     st1.close();
   }
 
+  @Test
+  public void testInserthaventTime() throws SQLException, InterruptedException {
+    Statement st0 = connection.createStatement();
+    st0.execute("insert into root.t1.wf01.wt01(status, temperature) values (1, 11)");
+
+    ResultSet rs1 = st0.executeQuery("select count(status) from root.t1.wf01.wt01");
+    rs1.next();
+    long countStatus = rs1.getLong(1);
+    System.out.println(countStatus);

Review Comment:
   ok



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org