alamb commented on PR #8947: URL: https://github.com/apache/arrow-datafusion/pull/8947#issuecomment-1905795232
> I understand the problem now. When we don't have a record batch, What about using [`execute_stream`](https://docs.rs/datafusion/latest/datafusion/dataframe/struct.DataFrame.html#method.execute_stream) instead of `collect`? The stream that is returned has the schema even if there are no record batches You could the call https://docs.rs/datafusion/latest/datafusion/physical_plan/common/fn.collect.html if you still needed a `Vec` of batches However, it would be great if we could figure out how to print record batches for every plan (even ones that are not "streaming") as they arrive rather than neeting to collect them all together - this would take a bigger refactoring (and need some finagling for the table output -- 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]
