From d0dc5a7feeedd94c4a09052b02be1337f615a63b Mon Sep 17 00:00:00 2001 From: nglime Date: Mon, 30 Dec 2024 22:44:36 -0600 Subject: [PATCH] Forgot to push to the columns in the else case. --- arrow-array/src/record_batch.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/arrow-array/src/record_batch.rs b/arrow-array/src/record_batch.rs index 230bdc2f3ad3..9c6e2004dfe3 100644 --- a/arrow-array/src/record_batch.rs +++ b/arrow-array/src/record_batch.rs @@ -476,6 +476,7 @@ impl RecordBatch { } } else { let updated_field = Field::new(name.concat(), data_type.clone(), nullable); + columns.push(c.clone()); fields.push(Arc::new(updated_field)); } }