forked from apache/doris
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix](Nereids) Fix lost predicate when query has a filter at the righ…
…t input of the outer join (apache#30374) materialized view def is as following: > select l_shipdate, o_orderdate, l_partkey, l_suppkey, o_orderkey > from lineitem > left join (select * from orders where o_orderdate = '2023-12-10' ) t2 > on lineitem.l_orderkey = t2.o_orderkey; the query as following, should add filter `o_orderdate = '2023-12-10'` on mv when query rewrite by materialized view > select l_shipdate, o_orderdate, l_partkey, l_suppkey, o_orderkey > from lineitem > left join orders > on lineitem.l_orderkey = orders.o_orderkey > where o_orderdate = '2023-12-10' order by 1, 2, 3, 4, 5;
- Loading branch information
Showing
3 changed files
with
73 additions
and
25 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