The RexExecutor is actually pluggable, we should do such an assumption.
CALCITE-3439 Support Intersect and Minus in RelMdPredicates
GitHub Pull Request #1808