diff --git a/be/src/runtime/group_commit_mgr.cpp b/be/src/runtime/group_commit_mgr.cpp index 3dd64f154c..fd9b96b0c1 100644 --- a/be/src/runtime/group_commit_mgr.cpp +++ b/be/src/runtime/group_commit_mgr.cpp @@ -142,7 +142,8 @@ Status LoadBlockQueue::get_block(RuntimeState* runtime_state, vectorized::Block* << ", runtime_state=" << runtime_state; } } - _get_cond.wait_for(l, std::chrono::milliseconds(std::min(left_milliseconds, 10000L))); + _get_cond.wait_for(l, std::chrono::milliseconds( + std::min(left_milliseconds, static_cast(10000)))); } if (runtime_state->is_cancelled()) { auto st = Status::Cancelled(runtime_state->cancel_reason());