This is an automated email from the ASF dual-hosted git repository.
yiguolei 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 d5e5afe437 [Bug](function) disable LUT for yearweek (#12324)
d5e5afe437 is described below
commit d5e5afe437fbef6756e5f12906c9389e0f0099e0
Author: Gabriel <[email protected]>
AuthorDate: Mon Sep 5 08:27:43 2022 +0800
[Bug](function) disable LUT for yearweek (#12324)
---
be/src/vec/runtime/vdatetime_value.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/be/src/vec/runtime/vdatetime_value.cpp
b/be/src/vec/runtime/vdatetime_value.cpp
index 819952330d..5d5c71ac32 100644
--- a/be/src/vec/runtime/vdatetime_value.cpp
+++ b/be/src/vec/runtime/vdatetime_value.cpp
@@ -2384,8 +2384,8 @@ uint32_t DateV2Value<T>::year_week(uint8_t mode) const {
}
uint16_t year = 0;
// The range of the week in the year_week is 1-53, so the mode WEEK_YEAR
is always true.
- uint8_t week =
- calc_week(this->daynr(), this->year(), this->month(), this->day(),
mode | 2, &year);
+ uint8_t week = calc_week(this->daynr(), this->year(), this->month(),
this->day(), mode | 2,
+ &year, true);
// When the mode WEEK_FIRST_WEEKDAY is not set,
// the week in which the last three days of the year fall may belong to
the following year.
if (week == 53 && day() >= 29 && !(mode & 4)) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]