Skip to content

Commit f565fbf

Browse files
committed
update code comment
1 parent a50f74d commit f565fbf

File tree

1 file changed

+2
-4
lines changed
  • matlab/src/cpp/arrow/matlab/tabular/proxy

1 file changed

+2
-4
lines changed

matlab/src/cpp/arrow/matlab/tabular/proxy/table.cc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,9 @@ libmexclass::proxy::MakeResult from_record_batches(const mda::StructArray& opts)
137137
num_rows += record_batches.back()->num_rows();
138138
}
139139

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.
142142
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.
145143
size_t num_columns = schema->num_fields();
146144
std::vector<std::shared_ptr<ChunkedArray>> columns(num_columns);
147145

0 commit comments

Comments
 (0)