doris sql_cache 失效返回错误结果

Viewed 43

1.执行sql

select count(1) from fin_tmp.xl_renhang_jiaoyi_rollback_cust_var_custlastpboc_part2 where main_sample_model = 1 and (yuqi_flag <> 1 or yuqi_flag is null) and loan_no is not null and rnk = 1 and substr(recall_date,1,7) >= "2023-06" and substr(recall_date,1,7) <= "2023-11" 

2. 异常现象

1)查询上面sql 前面几次正常结果,后面查询返回 0 错误值,返回很快
2)执行上面sql 超时异常后,第一次查询总是返回 0 错误值;

测试很多次,猜测 cache 失效后,缓存的sql 没有失效;是不是cache 失效和sql 失效不在一个事物里面,在开启cache 进行加速的情况,如何解决这个问题,麻烦帮忙解答一下。不甚感谢!

1 Answers

麻烦贴一下报错日志;关闭缓存后查询是否正常。