This is an automated email from the ASF dual-hosted git repository.
hellostephen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 99446cad0a3 [Fix](compile) Fix BE compile failure (#60113)
99446cad0a3 is described below
commit 99446cad0a34aba58163d2f504226121d1487f77
Author: zclllyybb <[email protected]>
AuthorDate: Wed Jan 21 17:17:39 2026 +0800
[Fix](compile) Fix BE compile failure (#60113)
introduced by https://github.com/apache/doris/pull/60042
---
be/src/vec/data_types/serde/data_type_timestamptz_serde.cpp | 4 +---
be/src/vec/runtime/timestamptz_value.h | 4 ++--
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/be/src/vec/data_types/serde/data_type_timestamptz_serde.cpp
b/be/src/vec/data_types/serde/data_type_timestamptz_serde.cpp
index 5694c7f0472..00d56d96a8e 100644
--- a/be/src/vec/data_types/serde/data_type_timestamptz_serde.cpp
+++ b/be/src/vec/data_types/serde/data_type_timestamptz_serde.cpp
@@ -223,9 +223,7 @@ Status DataTypeTimeStampTzSerDe::write_column_to_orc(const
std::string& timezone
}
int64_t timestamp = 0;
- if (!col_data[row_id].unix_timestamp(×tamp, UTC)) {
- return Status::InternalError("get unix timestamp error.");
- }
+ col_data[row_id].unix_timestamp(×tamp, UTC);
cur_batch->data[row_id] = timestamp;
cur_batch->nanoseconds[row_id] = col_data[row_id].microsecond() *
micro_to_nano_second;
diff --git a/be/src/vec/runtime/timestamptz_value.h
b/be/src/vec/runtime/timestamptz_value.h
index a65e95d7ce2..7b7f1139a52 100644
--- a/be/src/vec/runtime/timestamptz_value.h
+++ b/be/src/vec/runtime/timestamptz_value.h
@@ -139,8 +139,8 @@ public:
void set_microsecond(uint64_t microsecond) {
_utc_dt.set_microsecond(microsecond); }
- bool unix_timestamp(int64_t* timestamp, const cctz::time_zone& ctz) const {
- return _utc_dt.unix_timestamp(timestamp, ctz);
+ void unix_timestamp(int64_t* timestamp, const cctz::time_zone& ctz) const {
+ _utc_dt.unix_timestamp(timestamp, ctz);
}
// Convert UTC time to local time based on the given timezone
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]