diff --git a/regression-test/suites/external_table_p0/nereids_commands/test_use_database_stmt.groovy b/regression-test/suites/external_table_p0/nereids_commands/test_use_database_stmt.groovy index 133bdc0c9f2770..4c9035d13472e5 100644 --- a/regression-test/suites/external_table_p0/nereids_commands/test_use_database_stmt.groovy +++ b/regression-test/suites/external_table_p0/nereids_commands/test_use_database_stmt.groovy @@ -62,7 +62,7 @@ suite("test_use_database_stmt", "p0,external,mysql,external_docker,external_dock sql """use ${internal_db_name}""" qt_sql """select current_catalog()""" sql """use ${catalog_name}.${ex_db_name}""" - Assert.fail("Access denied for user '${user}' to database '${ex_db_name}'"); + exception"Access denied for user '${user}' to database '${ex_db_name}'"; } catch (Exception e) { log.info(e.getMessage()) }