Github user hequn8128 commented on the issue: https://github.com/apache/flink/pull/5347 Hi, @fhueske @twalthr , To solve the problem, we need to make the `estimateRowCount` in `CommonCalc` more accurate. I will update the pr tomorrow. Anyway, cost model can't solve the problem deterministically. The cost is just an estimate, so multi-cals will exist under some circumstances. As for correlate, to make sure unsupported exception won't be thrown, i will double check whether multi calcs are exist, and merge the calcs if need to. What do you think ? Thanks, Hequn.
---