morrySnow opened a new pull request, #35863: URL: https://github.com/apache/doris/pull/35863
if date arithmetic (date_add / date_sub)'s first argument is StringLikeLiteral. We use date signature as far as possible. for example: SQL: `select date_sub('2024-05-28', INTERVAL 1 week);` before this PR: ``` +------------------------------------------------+ | weeks_sub(cast('2024-05-28' as DATETIMEV2), 1) | +------------------------------------------------+ | 2024-05-21 00:00:00 | +------------------------------------------------+ ``` after this PR: ``` +--------------------------------------------+ | weeks_sub(cast('2024-05-28' as DATEV2), 1) | +--------------------------------------------+ | 2024-05-21 | +--------------------------------------------+ ``` -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org