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 2138f98efe3 Fix IoTDBInsertQueryIT on jdk8 (#16203)
2138f98efe3 is described below
commit 2138f98efe349411b6b12813e2e868c6708269f0
Author: Haonan <[email protected]>
AuthorDate: Tue Aug 19 12:16:37 2025 +0800
Fix IoTDBInsertQueryIT on jdk8 (#16203)
---
.../iotdb/relational/it/insertquery/IoTDBInsertQueryIT.java | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git
a/integration-test/src/test/java/org/apache/iotdb/relational/it/insertquery/IoTDBInsertQueryIT.java
b/integration-test/src/test/java/org/apache/iotdb/relational/it/insertquery/IoTDBInsertQueryIT.java
index 7948f4b7a30..e61c7e56e7e 100644
---
a/integration-test/src/test/java/org/apache/iotdb/relational/it/insertquery/IoTDBInsertQueryIT.java
+++
b/integration-test/src/test/java/org/apache/iotdb/relational/it/insertquery/IoTDBInsertQueryIT.java
@@ -511,11 +511,13 @@ public class IoTDBInsertQueryIT {
SessionDataSet dataSet =
session.executeQueryStatement(String.format(insertIntoQuery, 1));
fail("No exception!");
} catch (Exception e) {
- Assert.assertTrue(
- e.getMessage(),
- e.getMessage()
- .contains(
- "Cannot invoke \"java.util.List.size()\" because
\"columnNameList\" is null"));
+ if (e.getMessage() != null) {
+ Assert.assertTrue(
+ e.getMessage(),
+ e.getMessage()
+ .contains(
+ "Cannot invoke \"java.util.List.size()\" because
\"columnNameList\" is null"));
+ }
} finally {
session.executeNonQueryStatement(String.format(dropTableTemplate, 1));
}