flight_data_to_arrow_batch
does not support RecordBatch
es with no columns
#1783
Labels
flight_data_to_arrow_batch
does not support RecordBatch
es with no columns
#1783
Describe the bug
Attempting to use
flight_data_to_arrow_batch
on flight data that does not have any columns returns anInvalidArgumentError("must either specify a row count or at least one column")
.To reproduce
Call
flight_data_to_arrow_batch
on aFlightData
andSchema
that does not have any columns.Expected behavior
Calling
flight_data_to_arrow_batch
should use the row information in the RecordBatch header and return a valid record batch instead of returning an error.Additional context
Support for
RecordBatch
es with no columns but with a row count was already added in #1552.flight_data_to_arrow_batch
already has the row count information provided as an argument. It gets read there inmessage.header_as_record_batch()
, but then the subsequentreader::read_record_batch
call seems to discard that info.The text was updated successfully, but these errors were encountered: