Describe the enhancement requested
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:
|
matlabTable {istable} = table.empty(0, 0) |
Component(s)
MATLAB
Describe the enhancement requested
Currently, the
arrow.tableconstruction function will return an emptyarrow.tabular.Tableif no input arguments are passed to the function. However,arrow.recordBatchthrows an error in this case. We should consider makingarrow.recordBatchbehave consistently witharrow.tablein this case.This should be relatively straightforward to implement. We can just set the input argument
Tto default totable.empty(0,0)in theargumentsblock of therecordBatchfunction, in the same way thatarrow.tabledoes:arrow/matlab/src/matlab/+arrow/table.m
Line 21 in 73454b7
Component(s)
MATLAB