jonathanc-n commented on PR #16716: URL: https://github.com/apache/datafusion/pull/16716#issuecomment-3052562671
@nuno-faria We can return early from collect_left_input after intaking batches and checking the number of batches ```rust if batches.len() == 0 { return Ok(JoinLeftData::new( Box::new(JoinHashMapU32::with_capacity(0)), RecordBatch::new_empty(schema), Vec::new(), Mutex::new(BooleanBufferBuilder::new(0)), AtomicUsize::new(probe_threads_count), reservation, )); }; ``` -- 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