This is an automated email from the ASF dual-hosted git repository. zhangchen 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 bdb2f09e9f [fix](test) fix unstable pk uk case (#23390) bdb2f09e9f is described below commit bdb2f09e9fc0d1cd0e255fd1e875c1099874ac3f Author: Xin Liao <liaoxin...@126.com> AuthorDate: Wed Aug 23 20:09:37 2023 +0800 [fix](test) fix unstable pk uk case (#23390) --- .../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 92949578a1..b74d45c5f3 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 @@ -227,9 +227,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 fbf4e3a95e..917057ea50 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 2046f6f27d..7b051c5de8 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 3b61c69bbc..5e376f608d 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