morrySnow opened a new pull request, #68069:
URL: https://github.com/apache/doris/pull/68069
### What problem does this PR solve?
Related PR: #67787
Problem Summary:
Backport the user-variable SQL cache dependency fix to branch-4.1. User
variables are now recorded while binding `UnboundVariable`, before function
binding unwraps them to their real expressions. This prevents expressions such
as `ABS(@v)` from reusing a stale cached result after the variable changes.
The obsolete late `VariableToLiteral` / `ReplaceVariableByLiteral` path is
removed, and the generated-column variable check is performed on the parsed
expression so variables nested inside functions remain rejected. The unit test
is adapted to the Java `Optional` API used by branch-4.1.
### Release note
None
### Check List (For Author)
- Test
- [x] Unit Test
- [x] Regression test coverage included
- Behavior changed:
- [x] No.
- Does this need documentation?
- [x] No.
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label
--
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]