Skip to content

Commit

Permalink
fix(query): add missing server_version for query log (#14074)
Browse files Browse the repository at this point in the history
  • Loading branch information
everpcpc authored Dec 19, 2023
1 parent 9361cf3 commit 39f2bec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/query/service/src/interpreters/common/query_log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 39f2bec

Please sign in to comment.