UBarney commented on issue #16364: URL: https://github.com/apache/datafusion/issues/16364#issuecomment-2975520489
> By joining only one left row with the right batch at a time? However when `right_side_ordered == True` we need maintains right_side order. https://github.com/apache/datafusion/blob/69dfe6c499d39563f4e6d9835fcdf3793f7d98c8/datafusion/physical-plan/src/joins/nested_loop_join.rs#L727-L728 Perhaps we can "Process the Cartesian Product Incrementally" by generating Cartesian Product of `(left_batch, right_batch[i, i+N])` at a time I plan to implement "Limit intermediate_batch Size During Filtering" and "Yield Partial Batches on Demand" first, and then I will work on "Process the Cartesian Product Incrementally". cc @2010YOUY01 @xudong963 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org