Hints查询TIFLASH 1815报错

【 TiDB 使用环境】生产环境
【 TiDB 版本】7.5.0
【复现路径】做过哪些操作出现的问题
构建了TiFlash副本,查询后报错“ [1815] [HY000]: Internal : Can’t find a proper physical plan for this query”
执行sql:
Explain Analyze
select /*+ read_from_storage(TIFLASH[basedata.test]) */ count(1)
from basedata.test;

test表启用了tiflash副本了吗?

1 个赞

索引存在吗?

或者尝试使用 analyze table 命令更新表的统计信息

跟不上你的思路 :rofl:

启用了

也尝试了更新,不知道是不是因为数据量太大,用了11万条做的统计更新
Analyze use auto adjusted sample rate 0.000739 for table test, reason to use this rate is “use min(1, 110000/148811828) as the sample-rate=0.0007391885542861553”

设置tidb_allow_mpp=1试试