@@ -400,13 +400,11 @@ mod tests {
400400 }
401401 }
402402
403- /// Roundtrip many rows that share identical label key/value strings.
403+ /// Roundtrip many rows sharing identical label strings.
404404 ///
405- /// The property test draws random labels, so cross-row repetition is
406- /// incidental. This locks in that the `Dictionary(Int32, Utf8)` label columns
407- /// roundtrip correctly under the production pattern where a handful of
408- /// distinct strings (e.g. `env=prod`) repeat across every row and are
409- /// dictionary-deduplicated by the writer.
405+ /// The property test's random labels only repeat by chance; this pins the
406+ /// production pattern where a few distinct strings (`env=prod`) repeat across
407+ /// every row and are dictionary-deduplicated.
410408 #[ test]
411409 fn parquet_round_trip_repeated_labels ( ) {
412410 let run_id = Uuid :: from_u128 ( 0x1234_5678_9abc_def0_1234_5678_9abc_def0 ) ;
@@ -417,8 +415,8 @@ mod tests {
417415 . into_iter ( )
418416 . collect ( ) ;
419417
420- // 500 rows all carrying the same two labels, plus one row with a distinct
421- // label so the dictionary holds more than a single entry.
418+ // 500 rows sharing two labels, plus one distinct row so the dictionary
419+ // holds more than one entry.
422420 let mut input_lines: Vec < Line > = ( 0u64 ..500 )
423421 . map ( |i| Line {
424422 run_id,
@@ -468,17 +466,14 @@ mod tests {
468466 /// Decode `Dictionary(Int32, Utf8)` labels when a file is read as several
469467 /// `RecordBatch`es.
470468 ///
471- /// The parquet reader emits one `RecordBatch` per `batch_size` rows, so
472- /// production files — which exceed the default batch size — are always read as
473- /// several batches, a path a small single-batch roundtrip never reaches. Here a
474- /// small `batch_size` forces multiple batches, and each batch's labels are
475- /// decoded through the production `resolve_label_dictionary` helper and checked
476- /// against the values written. The test asserts it actually produced more than
477- /// one batch so the multi-batch coverage cannot silently lapse.
469+ /// The reader emits one `RecordBatch` per `batch_size` rows, so production
470+ /// files are read as several batches — a path a single-batch roundtrip misses.
471+ /// A small `batch_size` forces that here; each batch's labels are decoded via
472+ /// the production `resolve_label_dictionary` and checked, and the test asserts
473+ /// more than one batch so the coverage cannot silently lapse.
478474 ///
479- /// This does not exercise divergent per-batch dictionaries: the writer emits a
480- /// single row group with one dictionary page, so every read batch shares that
481- /// one dictionary rather than decoding an independent, index-restarted one.
475+ /// It does not exercise divergent per-batch dictionaries: the writer emits one
476+ /// row group with a single dictionary page, shared by every batch.
482477 #[ test]
483478 fn parquet_round_trip_multiple_read_batches ( ) {
484479 let run_id = Uuid :: from_u128 ( 0x0fed_cba9_8765_4321_0fed_cba9_8765_4321 ) ;
@@ -512,7 +507,7 @@ mod tests {
512507 let bytes = buffer. into_inner ( ) ;
513508
514509 // A batch size below the row count forces the reader to emit several
515- // batches, each decoding its labels from an independent dictionary .
510+ // batches.
516511 let bytes_buf = Bytes :: copy_from_slice ( & bytes) ;
517512 let reader = ParquetRecordBatchReaderBuilder :: try_new ( bytes_buf)
518513 . expect ( "reader builder" )
0 commit comments