forked from apache/doris
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[opt](nereids) range inference convert isnull to EmptyValue (apache#4…
…5310) Problem Summary: for sql a > 10 and a < 20 or a > 30 and a < 40 or a > 60 and a < 50 AddMinMax should opt it as: (a < 20 or a > 30 or a is null and null) and a > 10 and a < 40 But it fail, because the SimplifyRange will opt it as a > 10 and a < 20 or a > 30 and a < 40 or a is null and null since the 3rd is `a is null and null`, it couldn't get a's range and suppose a's range is [-00, +00], then the whole expression, it will get a's range is [-00, +00], to fix this problem, RangeInference need to convert `a is null and null` to EmptyValue instead of UnknownValue.
- Loading branch information
Showing
4 changed files
with
88 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters