Rewrite join implementation to allow streaming of one relation.