Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
1.13.0
-
None
-
None
-
None
Description
In equi-joins, if the join keys are not-nullable according to join type, we can assign a IS_NOT_NULL predicate to reduce input. For example, query:
select * from src1 join src2 on src1.id = src2.id
can be rewrite to
select * from (select * from src1 where src1.id is not null) src1 join (select * from src2 where src2.id is not null) src2 on src1.id = src2.id
Attachments
Issue Links
- is duplicated by
-
CALCITE-1526 Use Strong to infer whether a predicate's inputs may be null
- Closed