Yuanjia Zhang

Results 19 comments of Yuanjia Zhang

@fzzf678 Could you take a look at this issue?

> 各位老师麻烦问下,这个问题在哪个版本修复,有计划吗? We'll fix it next week.

Reason why the plan is unstable: 1) costs of these 2 plans (HJ and INLJ) are too close in cost-model-ver1 (as @Yisaer said), 2) the randomness of statistics is amplified...

Thanks for your feedback @darkelf21cn , I have reproduced this case on my computer. I will investigate this problem soon.

The reason is tricky and it is caused by a restriction on TiDB's optimizer. **Background**: the optimizer requires the inner child of `IndexJoin` must be a `DataSource(TableScan/IndexLookUp/IndexScan)`, you can see...