From 1d78df3bc3fc0c2e1c8ad1f72a26579521af1689 Mon Sep 17 00:00:00 2001 From: Raz Luvaton <16746759+rluvaton@users.noreply.github.com> Date: Tue, 30 Dec 2025 17:21:01 +0200 Subject: [PATCH] chore: run validation when debug assertion enabled and not only for test --- arrow-row/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arrow-row/src/lib.rs b/arrow-row/src/lib.rs index 3ffa71e98c30..3c63f3bd6bf2 100644 --- a/arrow-row/src/lib.rs +++ b/arrow-row/src/lib.rs @@ -892,7 +892,7 @@ impl RowConverter { // and therefore must be valid let result = unsafe { self.convert_raw(&mut rows, validate_utf8) }?; - if cfg!(test) { + if cfg!(debug_assertions) { for (i, row) in rows.iter().enumerate() { if !row.is_empty() { return Err(ArrowError::InvalidArgumentError(format!(