BiteTheDDDDt opened a new pull request, #63417:
URL: https://github.com/apache/doris/pull/63417
### What problem does this PR solve?
Issue Number: None
Related PR: None
Problem Summary: `assert_cast` can throw `doris::Exception` when release
type checking detects an invalid cast. The function was annotated with `PURE`,
but throwing an exception is an observable side effect and changes control
flow, so the annotation gives the compiler an invalid optimization contract for
the failure path. This removes the incorrect annotation and leaves the existing
cast logic unchanged.
### Release note
None
### Check List (For Author)
- Test: Manual test
- `git diff --cached --check`
- Behavior changed: No
- Does this need documentation: No
--
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]