fix: add system variable max_execution_time (#6511)

add system variable : max_execution_time

Signed-off-by: codephage. <tingwangyan2020@163.com>
Signed-off-by: evenyag <realevenyag@gmail.com>
This commit is contained in:
Yan Tingwang
2025-07-11 10:11:21 +08:00
committed by Yingwen
parent cb74337dbe
commit b83e6e2b18

View File

@@ -185,6 +185,9 @@ fn select_variable(query: &str, query_context: QueryContextRef) -> Option<Output
let value = match var_as[0] {
"session.time_zone" | "time_zone" => query_context.timezone().to_string(),
"system_time_zone" => system_timezone_name(),
"max_execution_time" | "session.max_execution_time" => {
query_context.query_timeout_as_millis().to_string()
}
_ => VAR_VALUES
.get(var_as[0])
.map(|v| v.to_string())