This is an automated email from the ASF dual-hosted git repository.
morrysnow pushed a commit to branch branch-3.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.1 by this push:
new 50b557262b8 branch-3.1: [fix](meta) update backup cases in cloud env
for temporary table #53673 (#53677)
50b557262b8 is described below
commit 50b557262b8f4247ace7fe94b0724420c48c329f
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Tue Jul 22 11:10:57 2025 +0800
branch-3.1: [fix](meta) update backup cases in cloud env for temporary
table #53673 (#53677)
Cherry-picked from #53673
Co-authored-by: Yulei-Yang <[email protected]>
---
.../suites/temp_table_p0/test_temp_table.groovy | 26 +++++++++++++---------
1 file changed, 16 insertions(+), 10 deletions(-)
diff --git a/regression-test/suites/temp_table_p0/test_temp_table.groovy
b/regression-test/suites/temp_table_p0/test_temp_table.groovy
index 4dba0d0df8b..e0edac76a3f 100644
--- a/regression-test/suites/temp_table_p0/test_temp_table.groovy
+++ b/regression-test/suites/temp_table_p0/test_temp_table.groovy
@@ -211,17 +211,23 @@ suite('test_temp_table', 'p0') {
"""
throw new IllegalStateException("Should throw error")
} catch (Exception ex) {
- assertTrue(ex.getMessage().contains("is a temporary table, do not
support backup"), ex.getMessage())
+ if (isCloudMode()) {
+ assertTrue(ex.getMessage().equals("denied"))
+ } else {
+ assertTrue(ex.getMessage().contains("is a temporary table, do not
support backup"), ex.getMessage())
+ }
}
- //a job backup multiple tables will submit successfully, and temp table
will be filtered
- snapshotName = "snst_" + UUID.randomUUID().toString().replace("-", "")
- sql """
- BACKUP SNAPSHOT regression_test_temp_table_p0.${snapshotName}
- to ${repoName}
- """
- select_result3 = sql "show backup where SnapshotName = '${snapshotName}'"
- assertFalse(select_result3[0][4].contains("t_test_temp_table2"))
+ if (!isCloudMode()) {
+ //a job backup multiple tables will submit successfully, and temp
table will be filtered
+ snapshotName = "snst_" + UUID.randomUUID().toString().replace("-", "")
+ sql """
+ BACKUP SNAPSHOT regression_test_temp_table_p0.${snapshotName}
+ to ${repoName}
+ """
+ select_result3 = sql "show backup where SnapshotName =
'${snapshotName}'"
+ assertFalse(select_result3[0][4].contains("t_test_temp_table2"))
+ }
def show_data = sql "show data"
def containTempTable = false
@@ -673,4 +679,4 @@ suite('test_temp_table', 'p0') {
sql "DROP USER IF EXISTS temp_table_test_user"
sql """drop table if exists t_test_table_with_data"""
sql """drop database if exists regression_test_temp_table_db2"""
-}
\ No newline at end of file
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]