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

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

commit d4120821c628693f461448ae8fc92a284f168ba0
Author: HTHou <[email protected]>
AuthorDate: Thu Feb 13 10:32:13 2025 +0800

    IT
---
 .../apache/iotdb/relational/it/db/it/IoTDBInsertTableIT.java  | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git 
a/integration-test/src/test/java/org/apache/iotdb/relational/it/db/it/IoTDBInsertTableIT.java
 
b/integration-test/src/test/java/org/apache/iotdb/relational/it/db/it/IoTDBInsertTableIT.java
index e751ab6423f..af51ab3fedd 100644
--- 
a/integration-test/src/test/java/org/apache/iotdb/relational/it/db/it/IoTDBInsertTableIT.java
+++ 
b/integration-test/src/test/java/org/apache/iotdb/relational/it/db/it/IoTDBInsertTableIT.java
@@ -491,6 +491,17 @@ public class IoTDBInsertTableIT {
         assertTrue(e.getMessage().contains("Current system timestamp precision 
is ms"));
       }
     }
+    try (Connection connection = 
EnvFactory.getEnv().getConnection(BaseEnv.TABLE_SQL_DIALECT);
+        Statement st1 = connection.createStatement()) {
+      try {
+        st1.execute("use \"test\"");
+        st1.execute(
+            "insert into wf16(tag1, time, status) values('wt01', 
-1618283005586000, true), ('wt01', -1618283005586001, false)");
+        fail();
+      } catch (SQLException e) {
+        assertTrue(e.getMessage().contains("Current system timestamp precision 
is ms"));
+      }
+    }
   }
 
   @Test

Reply via email to