seawinde
5aed3abb8a
[Fix](Nereids) Fix rewrite by materialized view fail when join input has agg ( #30734 )
...
materialized view definition is as following, and the query sql is the same
when outer group by use the col1 in the inner group, which can be rewritten by materialized view
select
t1.o_orderdate,
t1.o_orderkey,
t1.col1
from
(
select
o_orderkey,
o_custkey,
o_orderstatus,
o_orderdate,
sum(o_shippriority) as col1
from
orders
group by
o_orderkey,
o_custkey,
o_orderstatus,
o_orderdate
) as t1
left join lineitem on lineitem.l_orderkey = t1.o_orderkey
group by
t1.o_orderdate,
t1.o_orderkey,
t1.col1
2024-02-03 20:27:04 +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
2024-02-01 19:00:51 +08:00
2023-11-30 21:27:13 +08:00
2023-12-22 13:18:44 +08:00
2024-02-01 19:08:37 +08:00
2024-01-29 19:03:47 +08:00
2023-12-19 09:54:24 +08:00
2023-10-27 10:27:22 +08:00
2024-02-01 19:08:37 +08:00
2024-01-18 12:03:07 +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
2024-02-01 19:01:08 +08:00
2023-09-08 10:20:18 +08:00
2024-02-01 21:17:17 +08:00
2024-01-30 15:32:43 +08:00
2024-02-02 13:31:47 +08:00
2023-12-14 17:06:17 +08:00
2024-01-30 15:32:42 +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-30 15:32:42 +08:00
2023-12-05 12:54:40 +08:00
2024-02-03 20:25:25 +08: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-30 15:30:39 +08:00
2023-12-03 09:56:47 +08:00
2023-08-07 20:03:03 +08:00
2024-01-16 18:37:06 +08:00
2024-01-29 19:02:46 +08:00
2024-01-25 13:24:52 +08:00
2023-10-14 19:46:42 +08:00
2024-01-31 23:53:40 +08:00
2024-01-31 23:53:39 +08:00
2023-11-28 10:41:16 +08:00
2024-01-31 23:53:40 +08:00
2024-02-03 20:27:04 +08:00
2024-01-04 17:51:06 +08:00
2024-01-04 17:51:06 +08:00
2024-02-03 20:26:04 +08:00
2024-02-03 20:24:39 +08:00
2024-02-03 20:24:39 +08:00
2023-12-05 12:54:40 +08:00
2024-02-03 20:24:39 +08:00
2023-12-20 17:19:21 +08:00
2024-01-18 12:03:07 +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-02-03 20:26:04 +08:00
2023-11-14 10:49:21 +08:00
2024-01-12 11:46:29 +08:00
2023-11-13 21:39:28 +08:00
2024-01-30 15:30:39 +08:00
2023-09-15 10:39:07 +08:00
2023-10-30 17:36:17 +08:00
2024-01-18 12:03:07 +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
2024-01-25 13:24:09 +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
2024-02-03 20:24:39 +08:00
2023-11-29 10:37:28 +08:00
2023-12-22 11:59:37 +08:00
2024-01-31 23:53:39 +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