LiBinfeng-01 opened a new pull request, #24427:
URL: https://github.com/apache/doris/pull/24427

   ## Proposed changes
   
   Problem: 
   when doing case when which can transform to if-function, datatype in 
if-function would be wrong to match cast outside case when
   
   Example:
   select cast (case when BITMAP_EMPTY() is NULL then null else null end as 
bitmap) is NULL;
   
   Reason:
   when optimizer fould case when can transform to if-function, it would 
transform to it with first 
   matched function signature. But null can match to any signature, so the 
types of if-function go wrong
   
   Solved:
   add NullType prosess in if-function signature
   
   ## 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]

Reply via email to