Skip to content

[MATLAB] Add support for creating an empty arrow.tabular.RecordBatch by calling arrow.recordBatch with no input arguments #38211

@kevingurney

Description

@kevingurney

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

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions