islombektoshev commented on issue #40275:
URL: https://github.com/apache/doris/issues/40275#issuecomment-5252656804

   I found way of combining with coalesce:
   example
   ```sql
   select coalesce(1,null,3); -- will return 1
   select GREATEST(1,null,3); -- will return null
   ```
   
   we can combine like this
   ```sql
   select 
GREATEST(coalesce(1,1,null,3),coalesce(null,1,null,3),coalesce(3,1,null,3));
   -- will return 3
   ```


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