yujun777 commented on PR #55778:
URL: https://github.com/apache/doris/pull/55778#issuecomment-3268679885
if add non-nullable, will affect optimize.
for example: for sql
```
select cast(days_add(c_datetime, interval 100 second) as date) <=>
'2020-10-10'
```
if not add non-nullable, will get c_datetime's range
```
AND[
(c_datetime#1 >= 2020-10-09 23:58:20.000),
(c_datetime#1 <= 2020-10-10 23:58:19.999),
( not seconds_add(c_datetime#1, 100) IS NULL)
]
```
if add non-nullable, can't get c_datetime's range
```
AND[
(non_nullable(seconds_add(c_datetime#1, 100)) >= 2020-10-10
00:00:00.000),
(non_nullable(seconds_add(c_datetime#1, 100)) <= 2020-10-10
23:59:59.999),
( not seconds_add(c_datetime#1, 100) IS NULL)
]
```
--
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]