This is an automated email from the ASF dual-hosted git repository. kxiao pushed a commit to branch branch-2.0 in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.0 by this push: new 5370f04d5a2 [fix](test) fix unstable pk uk case (#23390) (#26366) 5370f04d5a2 is described below commit 5370f04d5a299eee728cddea15e7c5a7320ca381 Author: Dongyang Li <hello_step...@qq.com> AuthorDate: Fri Nov 3 13:22:24 2023 +0800 [fix](test) fix unstable pk uk case (#23390) (#26366) --- .../inverted_index_p0/index_change/test_pk_uk_index_change.groovy | 6 ++++-- .../suites/inverted_index_p0/unique_with_mow/test_pk_uk_case.groovy | 6 ++++-- regression-test/suites/unique_with_mow_p0/test_pk_uk_case.groovy | 4 ++-- regression-test/suites/unique_with_mow_p2/test_pk_uk_case.groovy | 4 ++-- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/regression-test/suites/inverted_index_p0/index_change/test_pk_uk_index_change.groovy b/regression-test/suites/inverted_index_p0/index_change/test_pk_uk_index_change.groovy index 70351933e1c..7bccbc9f2cb 100644 --- a/regression-test/suites/inverted_index_p0/index_change/test_pk_uk_index_change.groovy +++ b/regression-test/suites/inverted_index_p0/index_change/test_pk_uk_index_change.groovy @@ -246,9 +246,11 @@ suite("test_pk_uk_index_change", "inverted_index") { wait_for_build_index_on_partition_finish(tableNamePk, timeout) } + sql "sync" + // count(*) - result0 = sql """ SELECT count(*) FROM ${tableNamePk}; """ - result1 = sql """ SELECT count(*) FROM ${tableNameUk}; """ + def result0 = sql """ SELECT count(*) FROM ${tableNamePk}; """ + def result1 = sql """ SELECT count(*) FROM ${tableNameUk}; """ logger.info("result:" + result0[0][0] + "|" + result1[0][0]) assertTrue(result0[0]==result1[0]) if (result0[0][0]!=result1[0][0]) { diff --git a/regression-test/suites/inverted_index_p0/unique_with_mow/test_pk_uk_case.groovy b/regression-test/suites/inverted_index_p0/unique_with_mow/test_pk_uk_case.groovy index fbf4e3a95e9..917057ea508 100644 --- a/regression-test/suites/inverted_index_p0/unique_with_mow/test_pk_uk_case.groovy +++ b/regression-test/suites/inverted_index_p0/unique_with_mow/test_pk_uk_case.groovy @@ -191,9 +191,11 @@ suite("test_pk_uk_case", "inverted_index") { ($order_key, $part_key, $sub_key, $line_num, $decimal, $decimal, $decimal, $decimal, '1', '1', '$date', '$date', '$date', '$name', '$name', '$city') """ + sql "sync" + // count(*) - result0 = sql """ SELECT count(*) FROM ${tableNamePk}; """ - result1 = sql """ SELECT count(*) FROM ${tableNameUk}; """ + def result0 = sql """ SELECT count(*) FROM ${tableNamePk}; """ + def result1 = sql """ SELECT count(*) FROM ${tableNameUk}; """ logger.info("result:" + result0[0][0] + "|" + result1[0][0]) assertTrue(result0[0]==result1[0]) if (result0[0][0]!=result1[0][0]) { diff --git a/regression-test/suites/unique_with_mow_p0/test_pk_uk_case.groovy b/regression-test/suites/unique_with_mow_p0/test_pk_uk_case.groovy index 2046f6f27d4..7b051c5de82 100644 --- a/regression-test/suites/unique_with_mow_p0/test_pk_uk_case.groovy +++ b/regression-test/suites/unique_with_mow_p0/test_pk_uk_case.groovy @@ -187,8 +187,8 @@ suite("test_pk_uk_case") { sql "sync" // count(*) - result0 = sql """ SELECT count(*) FROM ${tableNamePk}; """ - result1 = sql """ SELECT count(*) FROM ${tableNameUk}; """ + def result0 = sql """ SELECT count(*) FROM ${tableNamePk}; """ + def result1 = sql """ SELECT count(*) FROM ${tableNameUk}; """ logger.info("result:" + result0[0][0] + "|" + result1[0][0]) assertTrue(result0[0]==result1[0]) if (result0[0][0]!=result1[0][0]) { diff --git a/regression-test/suites/unique_with_mow_p2/test_pk_uk_case.groovy b/regression-test/suites/unique_with_mow_p2/test_pk_uk_case.groovy index 3b61c69bbc2..5e376f608d6 100644 --- a/regression-test/suites/unique_with_mow_p2/test_pk_uk_case.groovy +++ b/regression-test/suites/unique_with_mow_p2/test_pk_uk_case.groovy @@ -187,8 +187,8 @@ suite("test_pk_uk_case") { sql "sync" // count(*) - result0 = sql """ SELECT count(*) FROM ${tableNamePk}; """ - result1 = sql """ SELECT count(*) FROM ${tableNameUk}; """ + def result0 = sql """ SELECT count(*) FROM ${tableNamePk}; """ + def result1 = sql """ SELECT count(*) FROM ${tableNameUk}; """ logger.info("result:" + result0[0][0] + "|" + result1[0][0]) assertTrue(result0[0]==result1[0]) if (result0[0][0]!=result1[0][0]) { --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org