This is an automated email from the ASF dual-hosted git repository.
sollhui pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new fe5192f7090 [fix](regression) Fix array string insert error assertion
(#64746)
fe5192f7090 is described below
commit fe5192f7090c2b1cf5728c683a4b4c2fdd5f92fd
Author: Refrain <[email protected]>
AuthorDate: Thu Jun 25 10:24:50 2026 +0800
[fix](regression) Fix array string insert error assertion (#64746)
### What problem does this PR solve?
Issue Number: None
Related PR: None
Problem Summary: The `test_array_string_insert` regression case expected
strict-mode insert failures to always contain the top-level message
`Insert has filtered data in strict mode`. In cloud/S3 regression runs,
long presigned error-log URLs can cause the final MySQL error packet to
truncate that top-level message while preserving `first_error_msg`. The
failed CI run hit this path for the NOT NULL ARRAY case, so the case
failed even though Doris reported the correct row-level data-quality
error. This change asserts the stable `first_error_msg` root causes for
the ARRAY<CHAR> length errors and the NOT NULL ARRAY error instead.
---
regression-test/suites/load/insert/test_array_string_insert.groovy | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/regression-test/suites/load/insert/test_array_string_insert.groovy
b/regression-test/suites/load/insert/test_array_string_insert.groovy
index 6e6252b1a63..39a02ad18b4 100644
--- a/regression-test/suites/load/insert/test_array_string_insert.groovy
+++ b/regression-test/suites/load/insert/test_array_string_insert.groovy
@@ -48,23 +48,22 @@ suite("test_array_string_insert", "load") {
sql "set enable_insert_strict = true"
// ARRAY<char> too long
- def exception_str = isGroupCommitMode() ? "too many filtered rows" :
"Insert has filtered data in strict mode"
sql "set enable_strict_cast = true"
test {
sql "INSERT INTO ${testTable} VALUES (1, ['12345','123456'], [],
NULL)"
- exception exception_str
+ exception "the length of input is too long than schema"
}
// NULL for NOT NULL column
test {
sql "INSERT INTO ${testTable} VALUES (2, ['12345','123'], NULL,
NULL)"
- exception exception_str
+ exception "null value for not null column"
}
// ARRAY<ARRAY<char>> too long
test {
sql "INSERT INTO ${testTable} VALUES (3, NULL, ['4'],
[['123456'],['222']])"
- exception exception_str
+ exception "the length of input is too long than schema"
}
// normal insert
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]