HappenLee commented on pull request #5882:
URL: https://github.com/apache/incubator-doris/pull/5882#issuecomment-846700225


   > what if SELECT ALL NULLIF (-98, NULL) AS col0 ?
   
   The right result of nullif(-98, null) is -98. but before fix the bug, the 
answer is `null`. Because the FE wiil treat all the function not in 
`non_null_result_with_null_param_functions` alwalys `null` if there params have 
`null`.
   
   so add the `nullif` function to `non_null_result_with_null_param_functions`  
we can get the right answer:`98`


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

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