yujun777 opened a new pull request, #63403:
URL: https://github.com/apache/doris/pull/63403

   ### What problem does this PR solve?
   
   Issue Number: close #xxx
   
   Related PR: #62698
   
   Problem Summary:
   
   PR #62698 introduced the UDF volatility property and added 
`VolatileExpression` / `VolatileIdentity` so volatile UDF calls can carry 
per-call identity and avoid unsafe optimizer rewrites.
   
   This PR is a follow-up refactoring for that change. It removes duplicated 
unique identity state from `UniqueFunction`, keeps `VolatileIdentity` as the 
single identity holder, moves volatile-expression helper methods into 
`ExpressionTrait`, and expands the former `AddProjectForUniqueFunction` rewrite 
to operate on volatile expressions rather than only unique functions.
   
   ### Release note
   
   None
   
   ### Check List (For Author)
   
   - Test
       - [ ] Regression test
       - [x] Unit Test
           - `AddProjectForVolatileExpressionTest`
           - `UdfVolatilityTest`
           - `UniqueFunctionTest`
       - [ ] Manual test (add detailed scripts or steps below)
       - [ ] No need to test or manual test. Explain why:
           - [ ] This is a refactor/code format and no logic has been changed.
           - [ ] Previous test can cover this change.
           - [ ] No code files have been changed.
           - [ ] Other reason
   
   - Behavior changed:
       - [x] No.
       - [ ] Yes.
   
   - Does this need documentation?
       - [x] No.
       - [ ] Yes.
   
   ### 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]

Reply via email to