littleeleventhwolf commented on a change in pull request #7673:
URL: https://github.com/apache/incubator-doris/pull/7673#discussion_r780628341
##########
File path: be/src/exprs/timestamp_functions.cpp
##########
@@ -152,6 +152,17 @@ IntVal TimestampFunctions::day_of_week(FunctionContext*
context, const DateTimeV
return IntVal::null();
}
+IntVal TimestampFunctions::week_day(FunctionContext* context, const
DateTimeVal& ts_val) {
+ if (ts_val.is_null) {
+ return IntVal::null();
+ }
+ const DateTimeValue& ts_value = DateTimeValue::from_datetime_val(ts_val);
+ if (ts_value.is_valid_date()) {
+ return IntVal(ts_value.weekday());;
Review comment:
Solved
--
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]