jonathanc-n opened a new issue, #18859:
URL: https://github.com/apache/datafusion/issues/18859
### Is your feature request related to a problem or challenge?
After adding `BatchCoalescer`/`LimitedBatchCoalescer` to Nested Loop Join
and Hash Join there is the same issue of having to create a flag to return an
empty batch. If the coalescer does not produce any rows then an empty schema
will be returned instead of an empty record batch with the join schema.
### Describe the solution you'd like
Add a flag to `LimitedBatchCoalescer` so that when `finish()` is called, it
will check:
```
if rows_returned == 0 && coalescer.return_empty_batch {
return RecordBatch::empty()
}
```
### Describe alternatives you've considered
_No response_
### Additional context
_No response_
--
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]