ygf11 commented on issue #5382: URL: https://github.com/apache/arrow-datafusion/issues/5382#issuecomment-1448048578
Seems it is caused by trying to create RecordBatch with empty schema. https://github.com/apache/arrow-datafusion/blob/c676d1026f8fa25c1495ec139b8a379ce1f2f86b/datafusion/core/src/physical_plan/joins/utils.rs#L823 The row count is inferred from columns, but the columns is also empty here. We can use `RecordBatch::try_new_with_options` with specifying the row count. https://github.com/apache/arrow-rs/blob/e7eb304dac442a943c434f8ea248de909f82aa88/arrow-array/src/record_batch.rs#L107-L113 -- 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]
