File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
matlab/src/cpp/arrow/matlab/tabular/proxy Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -137,11 +137,9 @@ libmexclass::proxy::MakeResult from_record_batches(const mda::StructArray& opts)
137
137
num_rows += record_batches.back ()->num_rows ();
138
138
}
139
139
140
- // This function can only be invoked if there's at least 1 RecordBatch,
141
- // so this should be safe .
140
+ // The MATLAB client code that calls this function is responsible for pre-validating
141
+ // that this function is called with at least one RecordBatch .
142
142
auto schema = record_batches[0 ]->schema ();
143
- // The MATLAB client code should have already validated that the schemas are consistent.
144
- // Create a vector of columns.
145
143
size_t num_columns = schema->num_fields ();
146
144
std::vector<std::shared_ptr<ChunkedArray>> columns (num_columns);
147
145
You can’t perform that action at this time.
0 commit comments