wangbo commented on issue #3008: Wrong answer for tableau generated SQL URL: https://github.com/apache/incubator-doris/issues/3008#issuecomment-595098011 **Bug Detail** The args of UDF ```ifnull``` current not support ```(date,datetime)``` or ```(datetime, date)``` When user uses ifnull with args ```(date,datetime)``` or ```(datetime, date)```,```Fe``` can't find a totally match Function,it will use ```ifnull(int,int)``` instead, then type cast happened, input args ```date``` or ```datetime``` will be cast to int,So the result is wrong. **Solution** Add new Args type ```(date,datetime)``` and ```(date,datetime)``` for ```ifull```. First, type cast will be avoid. Second, for ```Fe```,add new Args type won't affect UDF match logic. Third , ```Be``` treats date and datetime as the same type by default, so we needn't change ```Be``` logic
---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org