Hi Bhuvan,
Thanks for reporting it. I can reproduce this on master and on
REL_19_STABLE. It is a v19 regression from 383eb21ebff.
One concern from code. The patch also removes the anti-join fo
built-in casts, which never return NULL.
numeric_col NOT IN (SELECT int_col ...)
text_col NOT IN (SELECT char_col ...)
Could we keep the anti-join for built-in cast functions, and use the
SubPlan only for user-defined ones?
Thanks,
Shihao