From 4ecabe6e6cbc65fe57a4bd5ba0a3639af8c2b57e Mon Sep 17 00:00:00 2001 From: "shuming.li" Date: Thu, 10 Oct 2024 14:59:35 +0800 Subject: [PATCH] [UT] Fix unstable mv sql tests (#51704) Signed-off-by: shuming.li (cherry picked from commit 716434ad3847e8b741a051430e9f410a3e5cbcf1) --- .../com/starrocks/backup/RestoreJobMaterializedViewTest.java | 2 +- .../R/test_mv_refresh_with_the_same_tables | 2 +- .../T/test_mv_refresh_with_the_same_tables | 2 +- test/sql/test_transparent_mv/R/test_transparent_mv_mysql | 2 +- test/sql/test_transparent_mv/T/test_transparent_mv_mysql | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/fe/fe-core/src/test/java/com/starrocks/backup/RestoreJobMaterializedViewTest.java b/fe/fe-core/src/test/java/com/starrocks/backup/RestoreJobMaterializedViewTest.java index 905d9137639ec7..032485dd50c3a2 100644 --- a/fe/fe-core/src/test/java/com/starrocks/backup/RestoreJobMaterializedViewTest.java +++ b/fe/fe-core/src/test/java/com/starrocks/backup/RestoreJobMaterializedViewTest.java @@ -552,4 +552,4 @@ private void assertMVActiveEquals(String mvName, boolean expect) { MaterializedView mv = (MaterializedView) mvTable; Assert.assertEquals(mv.isActive(), expect); } -} \ No newline at end of file +} diff --git a/test/sql/test_materialized_view_refresh/R/test_mv_refresh_with_the_same_tables b/test/sql/test_materialized_view_refresh/R/test_mv_refresh_with_the_same_tables index 45ec8dde724a73..8ce61de5ddb36d 100644 --- a/test/sql/test_materialized_view_refresh/R/test_mv_refresh_with_the_same_tables +++ b/test/sql/test_materialized_view_refresh/R/test_mv_refresh_with_the_same_tables @@ -1,4 +1,4 @@ --- name: test_mv_refresh_with_the_same_tables +-- name: test_mv_refresh_with_the_same_tables @slow CREATE TABLE `t1` ( `k1` int(11) NULL COMMENT "", `k2` decimal(38, 8) NULL COMMENT "", diff --git a/test/sql/test_materialized_view_refresh/T/test_mv_refresh_with_the_same_tables b/test/sql/test_materialized_view_refresh/T/test_mv_refresh_with_the_same_tables index 2025d314131939..5381e1a673bf19 100644 --- a/test/sql/test_materialized_view_refresh/T/test_mv_refresh_with_the_same_tables +++ b/test/sql/test_materialized_view_refresh/T/test_mv_refresh_with_the_same_tables @@ -1,4 +1,4 @@ --- name: test_mv_refresh_with_the_same_tables +-- name: test_mv_refresh_with_the_same_tables @slow CREATE TABLE `t1` ( `k1` int(11) NULL COMMENT "", `k2` decimal(38, 8) NULL COMMENT "", diff --git a/test/sql/test_transparent_mv/R/test_transparent_mv_mysql b/test/sql/test_transparent_mv/R/test_transparent_mv_mysql index 2ebd78de44e536..aa08c720cf56f0 100644 --- a/test/sql/test_transparent_mv/R/test_transparent_mv_mysql +++ b/test/sql/test_transparent_mv/R/test_transparent_mv_mysql @@ -1,4 +1,4 @@ --- name: test_transparent_mv_mysql +-- name: test_transparent_mv_mysql @slow shell: mysql -h${external_mysql_ip} -u${external_mysql_user} -p${external_mysql_password} -P${external_mysql_port} -e 'create database mv_mysql_db_${uuid0};' -- result: 0 diff --git a/test/sql/test_transparent_mv/T/test_transparent_mv_mysql b/test/sql/test_transparent_mv/T/test_transparent_mv_mysql index f8207aed641d67..812d5cffd89b15 100644 --- a/test/sql/test_transparent_mv/T/test_transparent_mv_mysql +++ b/test/sql/test_transparent_mv/T/test_transparent_mv_mysql @@ -1,4 +1,4 @@ --- name: test_transparent_mv_mysql +-- name: test_transparent_mv_mysql @slow -- create mysql table shell: mysql -h${external_mysql_ip} -u${external_mysql_user} -p${external_mysql_password} -P${external_mysql_port} -e 'create database mv_mysql_db_${uuid0};' shell: mysql -h${external_mysql_ip} -u${external_mysql_user} -p${external_mysql_password} -P${external_mysql_port} -e 'use mv_mysql_db_${uuid0}; CREATE TABLE t1 (num int, dt date) PARTITION BY range columns(dt) (PARTITION p20200614 VALUES LESS THAN ("2020-06-15"),PARTITION p20200617 VALUES LESS THAN ("2020-06-18"),PARTITION p20200620 VALUES LESS THAN ("2020-06-21"),PARTITION p20200623 VALUES LESS THAN ("2020-06-24"),PARTITION p20200701 VALUES LESS THAN ("2020-07-02"),PARTITION p20200704 VALUES LESS THAN ("2020-07-05"),PARTITION p20200707 VALUES LESS THAN ("2020-07-08"),PARTITION p20200710 VALUES LESS THAN ("2020-07-11"),PARTITION p20200715 VALUES LESS THAN ("2020-07-16"),PARTITION p20200718 VALUES LESS THAN ("2020-07-19"),PARTITION p20200721 VALUES LESS THAN ("2020-07-22"),PARTITION p20200724 VALUES LESS THAN ("2020-07-31"));'