From 3485b7d9047aad89a8ed303da983d684edc2ee0e Mon Sep 17 00:00:00 2001 From: HHoflittlefish777 <77738092+HHoflittlefish777@users.noreply.github.com> Date: Mon, 22 Apr 2024 19:49:32 +0800 Subject: [PATCH] [fix](stream-load) fix query id is zero in stream load log (#33954) --- be/src/runtime/stream_load/stream_load_executor.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/be/src/runtime/stream_load/stream_load_executor.cpp b/be/src/runtime/stream_load/stream_load_executor.cpp index 54ad204a879218..720c2e868987e7 100644 --- a/be/src/runtime/stream_load/stream_load_executor.cpp +++ b/be/src/runtime/stream_load/stream_load_executor.cpp @@ -69,7 +69,7 @@ Status StreamLoadExecutor::execute_plan_fragment(std::shared_ptrstart_write_data_nanos = MonotonicNanos(); LOG(INFO) << "begin to execute stream load. label=" << ctx->label << ", txn_id=" << ctx->txn_id - << ", query_id=" << print_id(ctx->put_result.params.params.query_id); + << ", query_id=" << ctx->id; Status st; auto exec_fragment = [ctx, this](RuntimeState* state, Status* status) { if (ctx->group_commit) { @@ -111,7 +111,6 @@ Status StreamLoadExecutor::execute_plan_fragment(std::shared_ptrbrief(); // cancel body_sink, make sender known it if (ctx->body_sink != nullptr) { @@ -150,8 +149,7 @@ Status StreamLoadExecutor::execute_plan_fragment(std::shared_ptr