From b0599041a16a1896b7d341991c7dd672a4b3745f Mon Sep 17 00:00:00 2001 From: zwang28 <84491488@qq.com> Date: Wed, 13 Nov 2024 17:16:47 +0800 Subject: [PATCH 1/2] refactor: allow modification of the query mode --- src/common/src/session_config/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/src/session_config/mod.rs b/src/common/src/session_config/mod.rs index 3b9451bf55112..d452c51ad3539 100644 --- a/src/common/src/session_config/mod.rs +++ b/src/common/src/session_config/mod.rs @@ -77,7 +77,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. From a658412c883a29e2ffa4ea0d17d83ae5246e4a15 Mon Sep 17 00:00:00 2001 From: zwang28 <84491488@qq.com> Date: Tue, 19 Nov 2024 11:23:29 +0800 Subject: [PATCH 2/2] fix test --- e2e_test/ddl/alter_session_params.slt | 3 --- 1 file changed, 3 deletions(-) diff --git a/e2e_test/ddl/alter_session_params.slt b/e2e_test/ddl/alter_session_params.slt index ecaf7f09ebad3..49968ded83245 100644 --- a/e2e_test/ddl/alter_session_params.slt +++ b/e2e_test/ddl/alter_session_params.slt @@ -26,9 +26,6 @@ set STREAMING_ENABLE_DELTA_JOIN to false; 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;