starocean999
d39bca5ec7
[fix](nereids) don't build cte producer if the consumer is empty relation (#21317)
explain WITH cte_0 AS ( SELECT 1 AS a ) SELECT * from cte_0 t1 join cte_0 t2 on true WHERE false;
before:
```
+----------------------------+
| Explain String |
+----------------------------+
| PLAN FRAGMENT 0 |
| OUTPUT EXPRS: |
| a[#1] |
| a[#2] |
| PARTITION: UNPARTITIONED |
| |
| VRESULT SINK |
| |
| 1:VEMPTYSET |
| |
| PLAN FRAGMENT 1 |
| OUTPUT EXPRS: |
| a[#0] |
| PARTITION: UNPARTITIONED |
| |
| MultiCastDataSinks |
| |
| 0:VUNION |
| constant exprs: |
| 1 |
+----------------------------+
```
after:
```
+----------------------------+
| Explain String |
+----------------------------+
| PLAN FRAGMENT 0 |
| OUTPUT EXPRS: |
| a[#0] |
| a[#1] |
| PARTITION: UNPARTITIONED |
| |
| VRESULT SINK |
| |
| 0:VEMPTYSET |
+----------------------------+
```
2023-07-07 18:12:28 +08:00
..
2023-03-14 10:54:04 +08:00
2023-06-21 15:20:21 +08:00
2023-07-07 17:45:55 +08:00
2023-07-05 15:16:04 +08:00
2023-05-25 14:38:47 +08:00
2023-06-29 20:20:56 +08:00
2023-06-01 11:00:09 +08:00
2022-07-29 10:45:36 +08:00
2023-04-21 14:39:14 +08:00
2023-07-07 18:12:28 +08:00
2023-04-24 11:36:56 +08:00