|
2102 | 2102 | " └─TableFullScan 10000.00 mpp[tiflash] table:sales keep order:false, stats:pseudo"
|
2103 | 2103 | ],
|
2104 | 2104 | "Warn": null
|
| 2105 | + }, |
| 2106 | + { |
| 2107 | + "SQL": "explain format = 'brief' SELECT year+2 as y, SUM(profit) AS profit, grouping(year+2) FROM sales GROUP BY year+2, year+profit WITH ROLLUP having y > 2002 order by year+2, profit; -- 11. grouping function validation", |
| 2108 | + "Plan": [ |
| 2109 | + "Sort 6400.00 root Column#6, Column#9", |
| 2110 | + "└─TableReader 6400.00 root MppVersion: 2, data:ExchangeSender", |
| 2111 | + " └─ExchangeSender 6400.00 mpp[tiflash] ExchangeType: PassThrough", |
| 2112 | + " └─Projection 6400.00 mpp[tiflash] Column#6, Column#9, grouping(gid)->Column#10", |
| 2113 | + " └─Projection 6400.00 mpp[tiflash] Column#9, Column#6, gid", |
| 2114 | + " └─HashAgg 6400.00 mpp[tiflash] group by:Column#29, Column#30, Column#31, funcs:sum(Column#26)->Column#9, funcs:firstrow(Column#27)->Column#6, funcs:firstrow(Column#28)->gid", |
| 2115 | + " └─Projection 8000.00 mpp[tiflash] cast(test.sales.profit, decimal(10,0) BINARY)->Column#26, Column#6->Column#27, gid->Column#28, Column#6->Column#29, Column#7->Column#30, gid->Column#31", |
| 2116 | + " └─ExchangeReceiver 8000.00 mpp[tiflash] ", |
| 2117 | + " └─ExchangeSender 8000.00 mpp[tiflash] ExchangeType: HashPartition, Compression: FAST, Hash Cols: [name: Column#6, collate: binary], [name: Column#7, collate: binary], [name: gid, collate: binary]", |
| 2118 | + " └─Selection 8000.00 mpp[tiflash] gt(Column#6, 2002)", |
| 2119 | + " └─Expand 10000.00 mpp[tiflash] level-projection:[test.sales.profit, <nil>->Column#6, <nil>->Column#7, 0->gid],[test.sales.profit, Column#6, <nil>->Column#7, 1->gid],[test.sales.profit, Column#6, Column#7, 3->gid]; schema: [test.sales.profit,Column#6,Column#7,gid]", |
| 2120 | + " └─Projection 10000.00 mpp[tiflash] test.sales.profit, plus(test.sales.year, 2)->Column#6, plus(test.sales.year, test.sales.profit)->Column#7", |
| 2121 | + " └─TableFullScan 10000.00 mpp[tiflash] table:sales keep order:false, stats:pseudo" |
| 2122 | + ], |
| 2123 | + "Warn": null |
2105 | 2124 | }
|
2106 | 2125 | ]
|
2107 | 2126 | }
|
|
0 commit comments