This is an automated email from the ASF dual-hosted git repository.
panxiaolei 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 a949e1a761e [test](regression-test) fix case bugs (#30115)
a949e1a761e is described below
commit a949e1a761edb01e2b96469545b5fa9b7bee9496
Author: shuke <[email protected]>
AuthorDate: Fri Jan 19 14:17:47 2024 +0800
[test](regression-test) fix case bugs (#30115)
fix case bugs
---
regression-test/suites/export/test_struct_export.groovy | 2 +-
.../test_index_compaction_fault_injection.groovy | 8 ++++++++
regression-test/suites/show_p0/test_show_statistic_proc.groovy | 1 +
3 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/regression-test/suites/export/test_struct_export.groovy
b/regression-test/suites/export/test_struct_export.groovy
index f9f2b1fc63c..8df3a40906e 100644
--- a/regression-test/suites/export/test_struct_export.groovy
+++ b/regression-test/suites/export/test_struct_export.groovy
@@ -98,7 +98,7 @@ suite("test_struct_export", "export") {
} else {
throw new IllegalStateException("""${outFilePath} already exists!
""")
}
- result = sql """
+ def result = sql """
SELECT * FROM ${testTable} ORDER BY k1 INTO OUTFILE
"file://${outFile}/";
"""
url = result[0][3]
diff --git
a/regression-test/suites/fault_injection_p0/test_index_compaction_fault_injection.groovy
b/regression-test/suites/fault_injection_p0/test_index_compaction_fault_injection.groovy
index c3fd4f70272..b61f6e9c0b6 100644
---
a/regression-test/suites/fault_injection_p0/test_index_compaction_fault_injection.groovy
+++
b/regression-test/suites/fault_injection_p0/test_index_compaction_fault_injection.groovy
@@ -127,6 +127,14 @@ suite("test_index_compaction_failure_injection",
"nonConcurrent") {
run_sql.call()
int replicaNum = 1
+ String[][] dedup_tablets = deduplicate_tablets(tablets)
+ if (dedup_tablets.size() > 0) {
+ replicaNum = Math.round(tablets.size() / dedup_tablets.size())
+ if (replicaNum != 1 && replicaNum != 3) {
+ assert(false)
+ }
+ }
+
// before full compaction, there are 7 rowsets.
int rowsetCount = get_rowset_count.call(tablets);
assert (rowsetCount == 7 * replicaNum)
diff --git a/regression-test/suites/show_p0/test_show_statistic_proc.groovy
b/regression-test/suites/show_p0/test_show_statistic_proc.groovy
index 067dc4c4181..50825868789 100644
--- a/regression-test/suites/show_p0/test_show_statistic_proc.groovy
+++ b/regression-test/suites/show_p0/test_show_statistic_proc.groovy
@@ -23,6 +23,7 @@ suite("test_show_statistic_proc", "nonConcurrent") {
sql """grant ADMIN_PRIV on *.*.* to test_show_statistic_proc_user1"""
+ sql """drop database if exists test_statistic_proc_db"""
sql """create database test_statistic_proc_db"""
def result1 = connect(user = 'test_show_statistic_proc_user1', password =
'12345', url = context.config.jdbcUrl) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]