sohardforaname opened a new pull request, #19013:
URL: https://github.com/apache/doris/pull/19013
# Proposed changes
Issue Number: close #xxx
## Problem summary
```sql
select if(
date_format(CONCAT_WS('', '9999-07', '-26'), '%Y-%m') =
DATE_FORMAT(curdate(), '%Y-%m'),
curdate(),
DATE_FORMAT(DATE_SUB(month_ceil(CONCAT_WS('', '9999-07',
'-26')), 1), '%Y-%m-%d'))
```
the child(2) of if() function are not in resultExpr after fold by be. So we
change the way to get resultExpr from get() to getOrDefault(original
expression).
## Checklist(Required)
* [ ] Does it affect the original behavior
* [ ] Has unit tests been added
* [ ] Has document been added or modified
* [ ] Does it need to update dependencies
* [ ] Is this PR support rollback (If NO, please explain WHY)
## 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]