From c370bb7560b1db2ce7c8ede7a1fa9e6216f3b8ea Mon Sep 17 00:00:00 2001 From: zwang28 <70626450+zwang28@users.noreply.github.com> Date: Tue, 19 Nov 2024 17:20:51 +0800 Subject: [PATCH] refactor: allow modification of the query mode (#19424) --- e2e_test/ddl/alter_session_params.slt | 3 --- src/common/src/session_config/mod.rs | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/e2e_test/ddl/alter_session_params.slt b/e2e_test/ddl/alter_session_params.slt index ba5cdff21ef12..ff2e5b8dd3f12 100644 --- a/e2e_test/ddl/alter_session_params.slt +++ b/e2e_test/ddl/alter_session_params.slt @@ -1,9 +1,6 @@ statement ok set RW_STREAMING_ENABLE_DELTA_JOIN to true; -statement error session param query_mode cannot be altered system wide -alter system set query_mode to auto; - connection other1 query T show RW_STREAMING_ENABLE_DELTA_JOIN; diff --git a/src/common/src/session_config/mod.rs b/src/common/src/session_config/mod.rs index 163aa18799390..94b2650002e47 100644 --- a/src/common/src/session_config/mod.rs +++ b/src/common/src/session_config/mod.rs @@ -76,7 +76,7 @@ pub struct SessionConfig { /// The default value is auto which means let the system decide to run batch queries in local /// or distributed mode automatically. #[serde_as(as = "DisplayFromStr")] - #[parameter(default = QueryMode::default(), flags = "NO_ALTER_SYS")] + #[parameter(default = QueryMode::default())] query_mode: QueryMode, /// Sets the number of digits displayed for floating-point values.