diff --git a/src/query/service/src/interpreters/common/query_log.rs b/src/query/service/src/interpreters/common/query_log.rs index 150f920f8066..057f58988e88 100644 --- a/src/query/service/src/interpreters/common/query_log.rs +++ b/src/query/service/src/interpreters/common/query_log.rs @@ -17,6 +17,7 @@ use std::sync::Arc; use std::time::SystemTime; use databend_common_config::GlobalConfig; +use databend_common_config::DATABEND_COMMIT_VERSION; use databend_common_exception::ErrorCode; use databend_common_exception::Result; use databend_common_storages_system::LogType; @@ -182,7 +183,7 @@ impl InterpreterQueryLog { exception_code, exception_text, stack_trace, - server_version: "".to_string(), + server_version: DATABEND_COMMIT_VERSION.to_string(), session_settings, extra: "".to_string(), has_profiles: false, @@ -319,7 +320,7 @@ impl InterpreterQueryLog { exception_code, exception_text, stack_trace, - server_version: "".to_string(), + server_version: DATABEND_COMMIT_VERSION.to_string(), session_settings, extra: "".to_string(), has_profiles,