englefly commented on code in PR #10586:
URL: https://github.com/apache/doris/pull/10586#discussion_r912910189


##########
be/src/vec/runtime/vdatetime_value.cpp:
##########
@@ -837,6 +837,9 @@ bool VecDateTimeValue::to_format_string(const char* format, 
int len, char* to) c
 }
 
 uint8_t VecDateTimeValue::calc_week(const VecDateTimeValue& value, uint8_t 
mode, uint32_t* year) {
+    if (value._year >= 1949 && value._year < 2030) {
+        return week_of_year_table[value._year - 
1950][value._month][value._day];

Review Comment:
   in doris,mode is a hard-coded value 3.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to