Skip to content

Commit f273add

Browse files
committed
Add comment
1 parent 8572dae commit f273add

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/iceberg/src/arrow/record_batch_transformer.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,8 @@ impl RecordBatchTransformer {
531531
PrimitiveLiteral::String(_) => {
532532
// Use Run-End Encoding for constant strings (memory efficient)
533533
let run_ends_field = Arc::new(Field::new("run_ends", DataType::Int32, false));
534+
// Note that this is nullable, as Arrow expects this when building the
535+
// final Arrow schema.
534536
let values_field = Arc::new(Field::new("values", DataType::Utf8, true));
535537
DataType::RunEndEncoded(run_ends_field, values_field)
536538
}

0 commit comments

Comments
 (0)