是个 bug,这个 issue 跟踪:https://github.com/pingcap/tidb/issues/45805 相关帖子:select 单表报错 SQL 错误 [1105] [HY000]: runtime error: index out of range [0] with length 0