您好,去掉内存限制后,可以执行了。
执行计划
+------------------------------------------+--------------+-----------+-------------------+-------------------------------------------+-----------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------+------+
| id | estRows | actRows | task | access object | execution info | operator info | memory | disk |
+------------------------------------------+--------------+-----------+-------------------+-------------------------------------------+-----------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------+------+
| Projection_5 | 59576530.17 | 78318421 | root | | time:2m35.8s, loops:76746, Concurrency:8 | stat.st_broker_dealer_user_month_summary.ch_broker_id, stat.st_broker_dealer_user_month_summary.ch_dealer_id, stat.st_broker_dealer_user_month_summary.i_user_id, Column#22, Column#23, ifnull(Column#24, 0)->Column#27, ifnull(Column#25, 0)->Column#28, ifnull(round(div(Column#24, Column#25), 0), 0)->Column#29, Column#26, ifnull(round(div(Column#24, cast(Column#26, decimal(20,0) BINARY)), 0), 0)->Column#30, stat.st_broker_dealer_user_month_summary.ch_gender, stat.st_broker_dealer_user_month_summary.d_birthday, stat.st_broker_dealer_user_month_summary.i_is_china_id_card, stat.st_broker_dealer_user_month_summary.ch_region_code, stat.st_broker_dealer_user_month_summary.ch_province_code, stat.st_broker_dealer_user_month_summary.ch_city_code, stat.st_broker_dealer_user_month_summary.ch_county_code, stat.st_broker_dealer_user_month_summary.i_broker_type | 4.36 MB | N/A |
| └─TableReader_34 | 59576530.17 | 78318421 | root | | time:2m27.8s, loops:76746, cop_task: {num: 514, max: 0s, min: 0s, avg: 0s, p95: 0s, copr_cache_hit_ratio: 0.00} | data:ExchangeSender_33 | N/A | N/A |
| └─ExchangeSender_33 | 59576530.17 | 78318421 | batchCop[tiflash] | | tiflash_task:{proc max:1m8.5s, min:1m8.5s, p80:1m8.5s, p95:1m8.5s, iters:512, tasks:2, threads:2} | ExchangeType: PassThrough | N/A | N/A |
| └─Projection_29 | 59576530.17 | 78318421 | batchCop[tiflash] | | tiflash_task:{proc max:1m8.5s, min:1m8.5s, p80:1m8.5s, p95:1m8.5s, iters:512, tasks:2, threads:2} | Column#22, Column#23, Column#24, Column#25, Column#26, stat.st_broker_dealer_user_month_summary.ch_broker_id, stat.st_broker_dealer_user_month_summary.ch_dealer_id, stat.st_broker_dealer_user_month_summary.i_user_id, stat.st_broker_dealer_user_month_summary.ch_gender, stat.st_broker_dealer_user_month_summary.d_birthday, stat.st_broker_dealer_user_month_summary.i_is_china_id_card, stat.st_broker_dealer_user_month_summary.ch_region_code, stat.st_broker_dealer_user_month_summary.ch_province_code, stat.st_broker_dealer_user_month_summary.ch_city_code, stat.st_broker_dealer_user_month_summary.ch_county_code, stat.st_broker_dealer_user_month_summary.i_broker_type | N/A | N/A |
| └─HashAgg_30 | 59576530.17 | 78318421 | batchCop[tiflash] | | tiflash_task:{proc max:1m3.7s, min:1m3.7s, p80:1m3.7s, p95:1m3.7s, iters:512, tasks:2, threads:2} | group by:stat.st_broker_dealer_user_month_summary.ch_broker_id, stat.st_broker_dealer_user_month_summary.ch_dealer_id, stat.st_broker_dealer_user_month_summary.i_user_id, funcs:min(Column#36)->Column#22, funcs:max(Column#37)->Column#23, funcs:sum(Column#38)->Column#24, funcs:sum(Column#39)->Column#25, funcs:count(distinct stat.st_broker_dealer_user_month_summary.i_date)->Column#26, funcs:firstrow(stat.st_broker_dealer_user_month_summary.ch_broker_id)->stat.st_broker_dealer_user_month_summary.ch_broker_id, funcs:firstrow(stat.st_broker_dealer_user_month_summary.ch_dealer_id)->stat.st_broker_dealer_user_month_summary.ch_dealer_id, funcs:firstrow(stat.st_broker_dealer_user_month_summary.i_user_id)->stat.st_broker_dealer_user_month_summary.i_user_id, funcs:firstrow(Column#43)->stat.st_broker_dealer_user_month_summary.ch_gender, funcs:firstrow(Column#44)->stat.st_broker_dealer_user_month_summary.d_birthday, funcs:firstrow(Column#45)->stat.st_broker_dealer_user_month_summary.i_is_china_id_card, funcs:firstrow(Column#46)->stat.st_broker_dealer_user_month_summary.ch_region_code, funcs:firstrow(Column#47)->stat.st_broker_dealer_user_month_summary.ch_province_code, funcs:firstrow(Column#48)->stat.st_broker_dealer_user_month_summary.ch_city_code, funcs:firstrow(Column#49)->stat.st_broker_dealer_user_month_summary.ch_county_code, funcs:firstrow(Column#50)->stat.st_broker_dealer_user_month_summary.i_broker_type | N/A | N/A |
| └─ExchangeReceiver_32 | 59576530.17 | 219135718 | batchCop[tiflash] | | tiflash_task:{proc max:48.6s, min:45.7s, p80:48.6s, p95:48.6s, iters:1024, tasks:2, threads:32} | | N/A | N/A |
| └─ExchangeSender_31 | 59576530.17 | 219135718 | batchCop[tiflash] | | tiflash_task:{proc max:37.9s, min:37.9s, p80:37.9s, p95:37.9s, iters:512, tasks:2, threads:32} | ExchangeType: HashPartition, Hash Cols: stat.st_broker_dealer_user_month_summary.ch_broker_id, stat.st_broker_dealer_user_month_summary.ch_dealer_id, stat.st_broker_dealer_user_month_summary.i_user_id | N/A | N/A |
| └─HashAgg_8 | 59576530.17 | 219135718 | batchCop[tiflash] | | tiflash_task:{proc max:37.9s, min:37.9s, p80:37.9s, p95:37.9s, iters:512, tasks:2, threads:2} | group by:Column#80, Column#81, Column#82, Column#83, funcs:min(Column#68)->Column#36, funcs:max(Column#69)->Column#37, funcs:sum(Column#70)->Column#38, funcs:sum(Column#71)->Column#39, funcs:firstrow(Column#72)->Column#43, funcs:firstrow(Column#73)->Column#44, funcs:firstrow(Column#74)->Column#45, funcs:firstrow(Column#75)->Column#46, funcs:firstrow(Column#76)->Column#47, funcs:firstrow(Column#77)->Column#48, funcs:firstrow(Column#78)->Column#49, funcs:firstrow(Column#79)->Column#50 | N/A | N/A |
| └─Projection_43 | 219261946.77 | 219135718 | batchCop[tiflash] | | tiflash_task:{proc max:2.47s, min:2.47s, p80:2.47s, p95:2.47s, iters:3923, tasks:2, threads:32} | stat.st_broker_dealer_user_month_summary.i_date, stat.st_broker_dealer_user_month_summary.i_date, cast(stat.st_broker_dealer_user_month_summary.i_amount, decimal(41,0) BINARY)->Column#70, cast(stat.st_broker_dealer_user_month_summary.i_count, decimal(41,0) BINARY)->Column#71, stat.st_broker_dealer_user_month_summary.ch_gender, stat.st_broker_dealer_user_month_summary.d_birthday, stat.st_broker_dealer_user_month_summary.i_is_china_id_card, stat.st_broker_dealer_user_month_summary.ch_region_code, stat.st_broker_dealer_user_month_summary.ch_province_code, stat.st_broker_dealer_user_month_summary.ch_city_code, stat.st_broker_dealer_user_month_summary.ch_county_code, stat.st_broker_dealer_user_month_summary.i_broker_type, stat.st_broker_dealer_user_month_summary.ch_broker_id, stat.st_broker_dealer_user_month_summary.ch_dealer_id, stat.st_broker_dealer_user_month_summary.i_user_id, stat.st_broker_dealer_user_month_summary.i_date | N/A | N/A |
| └─Selection_28 | 219261946.77 | 219135718 | batchCop[tiflash] | | tiflash_task:{proc max:1.66s, min:1.66s, p80:1.66s, p95:1.66s, iters:3923, tasks:2, threads:32} | ge(stat.st_broker_dealer_user_month_summary.i_date, 201701), le(stat.st_broker_dealer_user_month_summary.i_date, 202110) | N/A | N/A |
| └─TableFullScan_27 | 224440400.00 | 219722775 | batchCop[tiflash] | table:st_broker_dealer_user_month_summary | tiflash_task:{proc max:1.59s, min:1.59s, p80:1.59s, p95:1.59s, iters:3940, tasks:2, threads:32} | keep order:false | N/A | N/A |
+------------------------------------------+--------------+-----------+-------------------+-------------------------------------------+-----------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------+------+
11 rows in set, 65535 warnings (2 min 35.81 sec)