mch_ucchi
cc41cb0e7e
[Fix](Nereids) fix some insert into select bugs ( #20052 )
...
fix 3 bugs:
1. failed to insert into a table with mv.
```sql
create table t (
id int,
c1 int,
c2 int,
c3 int
) duplicate key(id)
distributed by hash(id) buckets 4
create materialized view k12s3m as select id, sum(c1), max(c3) from t group by id;
insert into t select -4, -4, -4, 'd';
```
insert will rise exception because mv column is not handled. now we will add a target column and value as defineExpr.
2. failed to insert into a table with not all the columns.
```sql
insert into t(c1, c2) select c1, c2 from t
```
and t(id ukey, c1, c2, c3), will insert too many data, we fix it by change the output partitions.
3. failed to insert into a table with complex select.
the select statement has join or agg, fix the bug by the way similar to the one at 2nd bug.
2023-06-01 12:15:19 +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-02-17 18:48:27 +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-01-18 16:41:41 +08:00
2023-05-30 10:35:33 +08:00
2023-05-27 21:00:57 +08:00
2022-08-19 10:57:55 +08:00
2023-05-30 10:18:59 +08:00
2023-05-11 11:10:48 +08:00
2023-05-30 15:21:29 +08:00
2023-04-07 17:04:08 +08:00
2023-05-30 21:12:48 +08:00
2023-05-26 14:11:17 +08:00
2023-01-13 18:33:40 +08:00
2023-06-01 10:25:04 +08:00
2023-03-21 10:08:20 +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-05-30 16:57:39 +08:00
2023-05-31 09:21:04 +08:00
2023-01-10 17:25:06 +08:00
2023-02-17 18:48:27 +08:00
2023-05-29 15:38:31 +08:00
2023-05-14 20:01:30 +08:00
2023-05-29 15:38:31 +08:00
2023-05-31 18:09:50 +08:00
2023-05-30 15:21:29 +08:00
2023-05-26 14:11:17 +08:00
2023-05-26 21:35:38 +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-05-29 15:38:31 +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-04-30 17:42:02 +08:00
2023-04-07 14:23:16 +08:00
2023-04-03 09:49:07 +08:00
2023-05-29 15:38:31 +08:00
2023-05-17 21:26:31 +08:00
2023-06-01 12:15:19 +08:00
2023-05-29 15:38:31 +08:00
2023-05-31 14:40:24 +08:00
2023-03-30 16:09:16 +08:00
2023-05-29 15:38:31 +08:00
2023-05-29 15:38:31 +08:00
2023-05-29 15:38:31 +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-05-27 12:38:58 +08:00
2022-11-22 21:35:18 +08:00
2023-05-31 23:09:36 +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-05-23 18:18:55 +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-05-30 15:21:29 +08:00
2023-05-30 15:21:29 +08:00
2023-05-10 15:06:23 +08:00
2023-05-10 15:06:23 +08:00
2023-05-30 15:21:29 +08:00
2023-05-30 15:21:29 +08:00
2023-04-20 11:02:53 +08:00
2022-11-28 19:30:32 +08:00
2022-11-30 17:59:13 +08:00
2022-11-28 19:30:32 +08:00
2022-11-30 17:59:13 +08:00
2022-10-01 20:53:04 +08:00
2023-02-17 18:48:27 +08:00
2023-05-29 15:38:31 +08:00
2023-05-29 15:38:31 +08:00
2023-05-22 11:45:53 +08:00
2023-05-11 11:10:48 +08:00
2023-04-28 17:17:57 +08:00
2023-03-23 17:59:49 +08:00
2023-05-19 09:46:29 +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