Hi Zizhuan,
Thanks for asking before you split the patches.
I'd lean toward keeping the decision in clausesel.c as v2 does. The
null fraction lookup could move into a small selfuncs.c helper. That
works with any join estimator and needs no new estimator argument. If
that sounds right, I can post v4 that way.
Thanks,
Shihao