File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -279,6 +279,7 @@ fn gc_string_view_batch(batch: RecordBatch) -> RecordBatch {
279279 let gc_string = builder. finish ( ) ;
280280
281281 debug_assert ! ( gc_string. data_buffers( ) . len( ) <= 1 ) ; // buffer count can be 0 if the `ideal_buffer_size` is 0
282+ // Ensure the new array has the same number of rows as the input
282283 let new_row_count = gc_string. len ( ) ;
283284 assert_eq ! (
284285 new_row_count, row_count,
@@ -288,7 +289,7 @@ fn gc_string_view_batch(batch: RecordBatch) -> RecordBatch {
288289 }
289290 }
290291
291- // Safety: RecordBatch was valid, and we validated that the new output array
292+ // Safety: the input batch was valid, and we validated that the new output array
292293 // had the same number of rows as the input.
293294 unsafe { RecordBatch :: new_unchecked ( schema, columns, row_count) }
294295}
You can’t perform that action at this time.
0 commit comments