jacktengg opened a new pull request, #21350:
URL: https://github.com/apache/doris/pull/21350
## Proposed changes
Issue Number: close #xxx
For sql like `select cast("627492340" as datetime);` the string is an
invalid datetime, function `DateV2Value<T>::from_date_str` cast it as datetime
`2062-74-92 23:40:00`, with an out-of-range month and day value, which cause
memory violation in function `DateV2Value<T>::format_datetime` when trying to
access s_days_in_month.
## Further comments
If this is a relatively large or complex change, kick off the discussion at
[[email protected]](mailto:[email protected]) by explaining why you
chose the solution you did and what alternatives you considered, etc...
--
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]