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

   ## Proposed changes
   
   In https://github.com/apache/doris/pull/36111, we add `isDeterministic` 
method in class `ExpressionTrait` to identify the expression is deterministic 
or not.
   
   But `unix_timestamp` doesn't extend Nondeterministic, but it is not 
deterministic when it's children is empty. and is not deterministic when 
children is not empty. If we use` instanceOf Nondeterministic `to indentify if 
expression is  is not deterministic, that is confused.
   
   So we do something as fllowing:
   1. Remove Nondeterministic class, and use `isDeterministic` to indentify 
it's deterministic.
   2. Add `containsNondeterministic` method in `ExpressionTrait` to identify it 
contains nondeterministic expression or not.
   3. `isDeterministic` only identify current expression is deterministic or 
not. would identify if contains nondeterministic or not


-- 
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