This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.1 by this push:
new 2eee0ebdafe [regression-test](fix) global var (#51474)
2eee0ebdafe is described below
commit 2eee0ebdafe390a55f34d494a19960fe748d147b
Author: shuke <[email protected]>
AuthorDate: Wed Jun 4 18:58:19 2025 +0800
[regression-test](fix) global var (#51474)
---
.../insert_group_commit_with_exception.groovy | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git
a/regression-test/suites/insert_p0/insert_group_commit_with_exception.groovy
b/regression-test/suites/insert_p0/insert_group_commit_with_exception.groovy
index f1896716c79..421ef1695ad 100644
--- a/regression-test/suites/insert_p0/insert_group_commit_with_exception.groovy
+++ b/regression-test/suites/insert_p0/insert_group_commit_with_exception.groovy
@@ -174,7 +174,7 @@ suite("insert_group_commit_with_exception",
"nonConcurrent") {
ps.setObject(3, 70);
ps.setObject(4, "a");
ps.addBatch();
- int[] result = ps.executeBatch();
+ result = ps.executeBatch();
assertTrue(false)
} catch (Exception e) {
assertTrue(e.getMessage().contains("Column count doesn't
match value count"))
@@ -184,7 +184,7 @@ suite("insert_group_commit_with_exception",
"nonConcurrent") {
ps.setObject(1, 9);
ps.setObject(2, "f");
ps.addBatch();
- int[] result = ps.executeBatch();
+ result = ps.executeBatch();
assertTrue(false)
} catch (Exception e) {
assertTrue(e.getMessage().contains("Column count doesn't
match value count"))
@@ -213,7 +213,7 @@ suite("insert_group_commit_with_exception",
"nonConcurrent") {
ps.setObject(2, "f");
ps.setObject(3, "f");
ps.addBatch();
- int[] result = ps.executeBatch();
+ result = ps.executeBatch();
assertTrue(false)
} catch (Exception e) {
assertTrue(e.getMessage().contains("Column count doesn't
match value count"))
@@ -222,7 +222,7 @@ suite("insert_group_commit_with_exception",
"nonConcurrent") {
try (PreparedStatement ps =
connection.prepareStatement("insert into ${table}(id, name) values(?)")) {
ps.setObject(1, 13);
ps.addBatch();
- int[] result = ps.executeBatch();
+ result = ps.executeBatch();
assertTrue(false)
} catch (Exception e) {
assertTrue(e.getMessage().contains("Column count doesn't
match value count"))
@@ -232,7 +232,7 @@ suite("insert_group_commit_with_exception",
"nonConcurrent") {
ps.setObject(1, 12);
ps.setObject(2, "f");
ps.addBatch();
- int[] result = ps.executeBatch();
+ result = ps.executeBatch();
assertTrue(false)
} catch (Exception e) {
assertTrue(e.getMessage().contains("Unknown column
'names'"))
@@ -247,7 +247,7 @@ suite("insert_group_commit_with_exception",
"nonConcurrent") {
ps.setObject(2, "f");
ps.setObject(3, 90);
ps.addBatch();
- int[] result = ps.executeBatch();
+ result = ps.executeBatch();
logger.info("prepare insert result: " + result)
}
}
@@ -263,7 +263,7 @@ suite("insert_group_commit_with_exception",
"nonConcurrent") {
ps.setObject(5, "f");
ps.setObject(6, 90);
ps.addBatch();
- int[] result = ps.executeBatch();
+ result = ps.executeBatch();
logger.info("prepare insert result: " + result)
}
}
@@ -275,7 +275,7 @@ suite("insert_group_commit_with_exception",
"nonConcurrent") {
ps.setObject(2, "f")
ps.setObject(3, 90)
ps.addBatch()
- int[] result = ps.executeBatch()
+ result = ps.executeBatch()
logger.info("prepare insert result: " + result)
sql """ alter table ${table} ADD column age int after
name; """
@@ -306,7 +306,7 @@ suite("insert_group_commit_with_exception",
"nonConcurrent") {
ps.setObject(2, "f")
ps.setObject(3, 90)
ps.addBatch()
- int[] result = ps.executeBatch()
+ result = ps.executeBatch()
logger.info("prepare insert result: " + result)
sql """ alter table ${table} DROP column age; """
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]