seawinde
fda001b6d3
[Improvement](nereids) Support join derivation when mv rewrite ( #29609 )
...
materialized view def is as following:
> select l_linenumber, o_custkey
> from orders
> left join lineitem on lineitem.L_ORDERKEY = orders.O_ORDERKEY
> where o_custkey = 1;
when query is as following, it can be rewritten by mv above
it requires that query has reject null filters on the join right input,
current supported filter are "=", "<", "<=", ">", ">=", "<=>"
> select IFNULL(orders.O_CUSTKEY, 0) as custkey_not_null,
> case when l_linenumber in (1,2,3) then l_linenumber else o_custkey end as case_when
> from orders
> inner join lineitem on orders.O_ORDERKEY = lineitem.L_ORDERKEY
> where o_custkey = 1 and l_linenumber > 0;
2024-01-12 11:44:21 +08:00
..
2023-08-24 23:37:06 +08:00
2024-01-07 00:03:22 +08:00
2023-11-14 10:49:21 +08:00
2023-11-30 21:27:13 +08:00
2023-07-28 17:28:52 +08:00
2023-07-28 17:28:52 +08:00
2023-12-22 13:18:44 +08:00
2023-12-28 11:39:54 +08:00
2024-01-02 15:53:28 +08:00
2023-12-19 09:54:24 +08:00
2023-10-27 10:27:22 +08:00
2024-01-04 20:39:35 +08:00
2023-12-25 23:06:45 +08:00
2023-12-27 12:59:15 +08:00
2023-11-13 10:07:10 +08:00
2024-01-05 11:55:37 +08:00
2023-11-01 23:48:55 +08:00
2023-12-13 11:55:27 +08:00
2023-09-08 10:20:18 +08:00
2024-01-12 11:39:57 +08:00
2023-12-23 22:21:04 +08:00
2024-01-12 11:44:21 +08:00
2023-12-14 17:06:17 +08:00
2023-12-16 18:28:53 +08:00
2023-09-06 22:48:15 +08:00
2023-12-22 11:06:11 +08:00
2023-12-29 00:50:22 +08:00
2024-01-02 18:29:09 +08:00
2023-12-05 12:54:40 +08:00
2023-11-14 21:13:26 -06:00
2023-12-15 15:57:08 +08:00
2023-11-21 18:35:12 +08:00
2023-11-10 14:55:26 +08:00
2024-01-07 19:50:16 +08:00
2023-12-03 09:56:47 +08:00
2023-08-07 20:03:03 +08:00
2023-12-23 14:39:44 +08:00
2024-01-04 17:38:31 +08:00
2023-10-14 19:46:42 +08:00
2023-12-05 12:54:40 +08:00
2024-01-07 13:03:11 +08:00
2023-11-28 10:41:16 +08:00
2024-01-12 11:40:57 +08:00
2024-01-12 11:44:21 +08:00
2024-01-04 17:51:06 +08:00
2024-01-04 17:51:06 +08:00
2024-01-12 11:44:21 +08:00
2024-01-12 11:44:21 +08:00
2024-01-12 11:44:21 +08:00
2023-12-05 12:54:40 +08:00
2024-01-04 17:51:06 +08:00
2023-12-20 17:19:21 +08:00
2023-12-16 18:28:53 +08:00
2024-01-08 10:46:27 +08:00
2023-12-19 11:00:13 +08:00
2023-11-13 10:06:43 +08:00
2024-01-12 11:44:21 +08:00
2023-11-14 10:49:21 +08:00
2023-08-26 17:52:10 +08:00
2023-11-13 21:39:28 +08:00
2024-01-03 21:02:10 +08:00
2023-09-15 10:39:07 +08:00
2023-10-30 17:36:17 +08:00
2024-01-07 19:46:42 +08:00
2023-09-04 16:38:37 +08:00
2023-12-01 15:32:23 +08:00
2023-10-08 10:46:43 +08:00
2023-12-21 18:08:23 +08:00
2023-12-05 12:54:40 +08:00
2023-12-22 14:50:11 +08:00
2023-12-05 12:54:40 +08:00
2023-12-05 12:54:40 +08:00
2023-12-05 12:54:40 +08:00
2023-12-05 12:54:40 +08:00
2023-12-05 12:54:40 +08:00
2023-12-05 12:54:40 +08:00
2023-12-28 14:54:09 +08:00
2023-12-05 12:54:40 +08:00
2023-10-26 17:33:28 +08:00
2023-12-14 19:35:52 +08:00
2023-12-31 11:18:37 +08:00
2023-11-24 16:37:30 +08:00
2023-12-14 19:35:52 +08:00
2023-11-28 11:35:46 +08:00
2023-11-29 10:37:28 +08:00
2023-12-22 11:59:37 +08:00
2024-01-12 11:36:45 +08:00
2023-12-15 10:52:50 +08:00
2023-09-06 16:16:16 +08:00
2023-12-30 14:35:17 +08:00