This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-4.0 by this push:
new 6912d872e07 branch-4.0: [fix](build) fix macOS build #58445 (#60025)
6912d872e07 is described below
commit 6912d872e07a8d699a04fb81164c5a2c66f5724c
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Jan 19 19:48:33 2026 +0800
branch-4.0: [fix](build) fix macOS build #58445 (#60025)
Cherry-picked from #58445
Co-authored-by: zy-kkk <[email protected]>
---
be/src/runtime/stream_load/stream_load_recorder_manager.cpp | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/be/src/runtime/stream_load/stream_load_recorder_manager.cpp
b/be/src/runtime/stream_load/stream_load_recorder_manager.cpp
index 28597b8c6d6..f4db2e85d42 100644
--- a/be/src/runtime/stream_load/stream_load_recorder_manager.cpp
+++ b/be/src/runtime/stream_load/stream_load_recorder_manager.cpp
@@ -19,6 +19,7 @@
#include <fmt/format.h>
#include <glog/logging.h>
+#include <inttypes.h>
#include <rapidjson/document.h>
#include <rapidjson/stringbuffer.h>
@@ -176,9 +177,9 @@ std::string
StreamLoadRecorderManager::_parse_and_format_record(const std::strin
struct tm tm_buf;
localtime_r(&ts_sec, &tm_buf);
char buf[64];
- snprintf(buf, sizeof(buf), "%04d-%02d-%02d %02d:%02d:%02d.%03ld",
tm_buf.tm_year + 1900,
- tm_buf.tm_mon + 1, tm_buf.tm_mday, tm_buf.tm_hour,
tm_buf.tm_min, tm_buf.tm_sec,
- ms_part);
+ snprintf(buf, sizeof(buf), "%04d-%02d-%02d %02d:%02d:%02d.%03" PRId64,
+ tm_buf.tm_year + 1900, tm_buf.tm_mon + 1, tm_buf.tm_mday,
tm_buf.tm_hour,
+ tm_buf.tm_min, tm_buf.tm_sec, ms_part);
return {buf};
};
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]