From 78b6dd91d880071d2e85ac526ba36842f8727ec8 Mon Sep 17 00:00:00 2001 From: dachn <46547576+dachn@users.noreply.github.com> Date: Tue, 22 Aug 2023 10:31:49 +0800 Subject: [PATCH] fixbug impala-12322 fix a bug, which is get wrong timestamp when scan kudu timestamp with timezone --- be/src/exec/kudu/kudu-scanner.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/be/src/exec/kudu/kudu-scanner.cc b/be/src/exec/kudu/kudu-scanner.cc index c053670128..260c06a2e1 100644 --- a/be/src/exec/kudu/kudu-scanner.cc +++ b/be/src/exec/kudu/kudu-scanner.cc @@ -391,7 +391,7 @@ Status KuduScanner::DecodeRowsIntoRowBatch(RowBatch* row_batch, Tuple** tuple_me } int64_t ts_micros = *reinterpret_cast( kudu_tuple->GetSlot(slot->tuple_offset())); - TimestampValue tv = TimestampValue::UtcFromUnixTimeMicros(ts_micros); + TimestampValue tv = TimestampValue::FromUnixTimeMicros(ts_micros,state_->time_zone_for_unix_time_conversions()); if (tv.HasDateAndTime()) { RawValue::Write(&tv, kudu_tuple, slot, nullptr); } else {