AKIRA
638aa41988
[fix](planner) fix push filter through agg #21080
...
In the previous implementation, the check for groupby exprs was ignored. Add this necessary check to make sure it would work
You could reproduce it by runnning belowing sql:
CREATE TABLE t_push_filter_through_agg (col1 varchar(11451) not null, col2 int not null, col3 int not null)
UNIQUE KEY(col1)
DISTRIBUTED BY HASH(col1)
BUCKETS 3
PROPERTIES(
"replication_num"="1"
);
CREATE VIEW `view_i` AS
SELECT
`b`.`col1` AS `col1`,
`b`.`col2` AS `col2`
FROM
(
SELECT
`col1` AS `col1`,
sum(`cost`) AS `col2`
FROM
(
SELECT
`col1` AS `col1`,
sum(CAST(`col3` AS INT)) AS `cost`
FROM
`t_push_filter_through_agg`
GROUP BY
`col1`
) a
GROUP BY
`col1`
) b;
SELECT SUM(`total_cost`) FROM view_a WHERE `dt` BETWEEN '2023-06-12' AND '2023-06-18' LIMIT 1;
2023-06-25 19:14:20 +08:00
..
2023-03-07 10:28:56 +08:00
2023-01-17 16:48:02 +08:00
2023-05-29 15:38:31 +08:00
2023-06-21 16:25:07 +08:00
2023-05-15 15:13:16 +08:00
2023-05-29 15:38:31 +08:00
2023-05-17 21:26:31 +08:00
2023-06-19 14:11:10 +08:00
2023-01-18 16:41:41 +08:00
2023-06-19 23:44:30 +08:00
2023-06-14 17:34:34 +08:00
2022-08-19 10:57:55 +08:00
2023-06-21 18:36:46 +08:00
2023-06-20 21:23:00 +08:00
2023-04-07 17:04:08 +08:00
2023-06-21 15:20:21 +08:00
2023-06-01 13:09:58 +08:00
2023-06-05 09:38:29 +08:00
2023-01-13 18:33:40 +08:00
2023-06-01 10:25:04 +08:00
2023-06-06 10:35:30 +08:00
2023-05-29 15:38:31 +08:00
2023-05-17 21:26:31 +08:00
2023-05-08 14:02:20 +08:00
2023-06-13 08:55:16 +08:00
2023-06-21 14:54:01 +08:00
2023-01-10 17:25:06 +08:00
2023-06-13 14:31:24 +08:00
2023-06-21 18:36:46 +08:00
2023-05-14 20:01:30 +08:00
2023-06-06 12:04:03 +08:00
2023-06-21 20:14:06 +08:00
2023-06-01 13:09:58 +08:00
2023-05-26 14:11:17 +08:00
2023-06-20 10:39:34 +08:00
2023-05-17 20:50:15 +08:00
2023-05-18 16:16:52 +08:00
2023-05-27 12:45:45 +08:00
2023-05-29 15:38:31 +08:00
2023-06-21 18:12:51 +08:00
2023-03-30 14:42:34 +08:00
2023-05-30 16:26:00 +08:00
2023-02-19 15:11:54 +08:00
2023-03-21 23:22:17 +08:00
2023-06-21 13:06:52 +08:00
2023-04-07 14:23:16 +08:00
2023-04-03 09:49:07 +08:00
2023-06-01 13:09:58 +08:00
2023-06-08 14:49:52 +08:00
2023-06-21 15:20:21 +08:00
2023-06-19 23:43:40 +08:00
2023-06-21 20:29:36 +08:00
2023-06-14 17:34:34 +08:00
2023-06-16 22:49:04 +08:00
2023-06-19 23:40:44 +08:00
2022-09-19 08:38:17 +08:00
2023-02-28 11:15:32 +08:00
2023-01-18 12:33:20 +08:00
2023-06-08 10:55:22 +08:00
2022-11-22 21:35:18 +08:00
2023-06-25 19:14:20 +08:00
2023-03-20 13:10:12 +08:00
2023-05-17 21:26:31 +08:00
2023-05-17 21:26:31 +08:00
2023-04-11 11:09:43 +08:00
2023-06-21 18:36:46 +08:00
2023-04-26 15:34:46 +08:00
2022-10-04 20:56:22 +08:00
2023-04-07 14:23:16 +08:00
2022-11-22 10:36:12 +08:00
2023-02-17 18:48:27 +08:00
2023-05-26 16:05:38 +08:00
2023-05-29 15:38:31 +08:00
2023-05-24 20:17:28 +08:00
2023-06-01 13:09:58 +08:00
2023-06-01 13:09:58 +08:00
2023-06-25 11:16:56 +08:00
2023-06-06 11:05:56 +08:00
2023-05-10 15:06:23 +08:00
2023-06-01 13:09:58 +08:00
2023-06-01 13:09:58 +08:00
2023-04-20 11:02:53 +08:00
2022-11-28 19:30:32 +08:00
2023-06-06 11:05:56 +08:00
2022-11-28 19:30:32 +08:00
2023-06-06 11:05:56 +08:00
2023-06-06 11:05:56 +08:00
2023-06-16 10:09:22 +08:00
2023-06-01 13:09:58 +08:00
2023-05-29 15:38:31 +08:00
2023-05-22 11:45:53 +08:00
2023-06-21 18:36:46 +08:00
2023-04-28 17:17:57 +08:00
2023-03-23 17:59:49 +08:00
2023-06-21 18:36:46 +08:00
2023-03-29 10:49:39 +08:00
2022-09-29 10:45:17 +08:00
2023-04-07 14:23:16 +08:00