Skip to content

Commit a9ac1bc

Browse files
committed
tweak comments
1 parent fe2304a commit a9ac1bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arrow-select/src/coalesce.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)