版本:7.1.1
环境一:
id |estRows |actRows|task |access object |execution info |operator info |memory |disk|
-----------------------+----------+-------+------------+------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------+----+
TableReader_12 |16702.27 |5548 |root | |time:126.5ms, loops:7, RU:0.000000, cop_task: {num: 19, max: 0s, min: 0s, avg: 0s, p95: 0s, copr_cache_hit_ratio: 0.00} |MppVersion: 1, data:ExchangeSender_11 |80.4 KB|N/A |
└─ExchangeSender_11 |16702.27 |5548 |mpp[tiflash]| |tiflash_task:{proc max:120.6ms, min:90.2ms, avg: 109.8ms, p80:120.6ms, p95:120.6ms, iters:16, tasks:3, threads:96} |ExchangeType: PassThrough |N/A |N/A |
└─Projection_5 |16702.27 |5548 |mpp[tiflash]| |tiflash_task:{proc max:120.6ms, min:90.2ms, avg: 109.5ms, p80:120.6ms, p95:120.6ms, iters:16, tasks:3, threads:96} |mbase.rel_xhs_brand_note.noteid, cast(mbase.rel_xhs_brand_note.industryid, var_string(11))->Column#18, cast(mbase.rel_xhs_brand_note.categoryid, var_string(11))->Column#19, cast(mbase.rel_xhs_brand_note.brandid, var_string(11))->Column#20, cast(mbase.rel_|N/A |N/A |
└─Selection_10 |16702.27 |5548 |mpp[tiflash]| |tiflash_task:{proc max:120.6ms, min:90.2ms, avg: 109.5ms, p80:120.6ms, p95:120.6ms, iters:16, tasks:3, threads:96} |eq(mbase.rel_xhs_brand_note.categoryid, 0), eq(mbase.rel_xhs_brand_note.filtered, 1), ge(mbase.rel_xhs_brand_note.updatetime, 2023-09-20 06:54:37.000000), lt(mbase.rel_xhs_brand_note.updatetime, 2023-09-21 06:39:26.207000), not(isnull(mbase.rel_xhs_brand_|N/A |N/A |
└─TableFullScan_9|2178551.73|6204 |mpp[tiflash]|table:rel_xhs_brand_note|tiflash_task:{proc max:120.6ms, min:90.2ms, avg: 109.5ms, p80:120.6ms, p95:120.6ms, iters:32, tasks:3, threads:96}, tiflash_scan:{dtfile:{total_scanned_packs:1604, total_skipped_packs:85524, total_scanned_rows:13080590, total_skipped_rows:692340548, total|pushed down filter:in(mbase.rel_xhs_brand_note.brandid, 88, 344, 472, 600, 728, 856, 984, 1112, 1368, 690136, 690264, 690392, 690648, 690776, 630232, 960088, 960344, 960472, 960856, 960984, 961112, 961368, 961496, 961624, 961752, 961880, 962008, 962136, 9|N/A |N/A |
环境二:
id |estRows |actRows|task |access object |execution info |operator info |memory |disk|
---------------------+----------+-------+------------+------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------+----+
Projection_4 |0.00 |5548 |root | |time:2.18s, loops:7, RU:303.886963, Concurrency:OFF |mbase.rel_xhs_brand_note.noteid, cast(mbase.rel_xhs_brand_note.industryid, var_string(11))->Column#17, cast(mbase.rel_xhs_brand_note.categoryid, var_string(11))->Column#18, cast(mbase.rel_xhs_brand_note.brandid, var_string(11))->Column#19, cast(mbase.rel_|440.9 KB|N/A |
└─TableReader_7 |0.00 |5548 |root | |time:2.18s, loops:7, cop_task: {num: 1165, max: 0s, min: 0s, avg: 57.6ms, p95: 113.3ms, rpc_num: 1167, rpc_time: 1m7.1s, copr_cache_hit_ratio: 0.00, build_task_duration: 4.9ms, max_distsql_concurrency: 32}, backoff{regionMiss: 2ms} |data:Selection_6 |112.6 KB|N/A |
└─Selection_6 |0.00 |5548 |cop[tiflash]| |tiflash_task:{proc max:205.8ms, min:5.76ms, avg: 51.8ms, p80:76.5ms, p95:108.2ms, iters:97, tasks:1165, threads:1165} |eq(mbase.rel_xhs_brand_note.categoryid, 0), eq(mbase.rel_xhs_brand_note.filtered, 1), ge(mbase.rel_xhs_brand_note.updatetime, 2023-09-20 06:54:37.000000), lt(mbase.rel_xhs_brand_note.updatetime, 2023-09-21 06:39:26.207000), not(isnull(mbase.rel_xhs_brand_|N/A |N/A |
└─TableFullScan_5|2062771.00|1433979|cop[tiflash]|table:rel_xhs_brand_note|tiflash_task:{proc max:205.8ms, min:5.76ms, avg: 51.7ms, p80:76.5ms, p95:107.6ms, iters:236, tasks:1165, threads:1165}, tiflash_scan:{dtfile:{total_scanned_packs:50597, total_skipped_packs:342897, total_scanned_rows:411503365, total_skipped_rows:277851415|pushed down filter:in(mbase.rel_xhs_brand_note.brandid, 88, 344, 472, 600, 728, 856, 984, 1112, 1368, 690136, 690264, 690392, 690648, 690776, 630232, 960088, 960344, 960472, 960856, 960984, 961112, 961368, 961496, 961624, 961752, 961880, 962008, 962136, 9|N/A |N/A |
环境一未开启强制执行的情况下可以走tiflash且没有warning,环境二强制tiflash但没有走且报warning,如下:
Scalar function 'cast'(signature: CastIntAsString, return type: var_string(20)) is not supported to push down to tiflash now.
请问这是什么原因,环境二的问题应该怎么处理呢?