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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]