obs索引全表扫描

请教各位大佬,表 select max(id) from a where b=‘10223’ and create_date <= str_to_date(‘2023-05-10 00:00:00’,’%Y-%m-%d %H:%i:%s’)
id是主键;这个SQL,全表扫描;如果不用max(id),查询数据就走索引

版本,表结构,extend计划都要发下