Currently, the arrow.table construction function will return an empty arrow.tabular.Table if no input arguments are passed to the function. However, arrow.recordBatch throws an error in this case. We should consider making arrow.recordBatch behave consistently with arrow.table in this case.
This should be relatively straightforward to implement. We can just set the input argument T to default to table.empty(0,0) in the arguments block of the recordBatch function, in the same way that arrow.table does:
Describe the enhancement requested
Currently, the
arrow.table
construction function will return an emptyarrow.tabular.Table
if no input arguments are passed to the function. However,arrow.recordBatch
throws an error in this case. We should consider makingarrow.recordBatch
behave consistently witharrow.table
in this case.This should be relatively straightforward to implement. We can just set the input argument
T
to default totable.empty(0,0)
in thearguments
block of therecordBatch
function, in the same way thatarrow.table
does:https://github.com/apache/arrow/blob/73454b7040fbea3a187c1bfabd7ea02d46ca3c41/matlab/src/matlab/%2Barrow/table.m#L21
Component(s)
MATLAB