From 33614ea66d1c40d2654177e956a4eff3e25ba8d0 Mon Sep 17 00:00:00 2001 From: jackwener Date: Mon, 7 Aug 2023 16:17:10 +0800 Subject: [PATCH] minor: move comment to the correct location --- arrow-array/src/record_batch.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arrow-array/src/record_batch.rs b/arrow-array/src/record_batch.rs index 3134c9ecbd14..80c0e4b96741 100644 --- a/arrow-array/src/record_batch.rs +++ b/arrow-array/src/record_batch.rs @@ -158,7 +158,6 @@ impl RecordBatch { ))); } - // check that all columns have the same row count let row_count = options .row_count .or_else(|| columns.first().map(|col| col.len())) @@ -177,6 +176,7 @@ impl RecordBatch { } } + // check that all columns have the same row count if columns.iter().any(|c| c.len() != row_count) { let err = match options.row_count { Some(_) => {