select 单表报错 SQL 错误 [1105] [HY000]: runtime error: index out of range [0] with length 0

set tidb_partition_prune_mode=‘static’;
设置分区表不用动态裁剪试试