From 6c55d7bb87b531719956def52ee8fd293ea913e7 Mon Sep 17 00:00:00 2001 From: Joel Natividad <1980690+jqnatividad@users.noreply.github.com> Date: Fri, 13 Dec 2024 12:19:13 -0500 Subject: [PATCH] fix: modify test_stats helper to handle empty fields --- tests/test_stats.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_stats.rs b/tests/test_stats.rs index 640d1fce7..fd4a26cdb 100644 --- a/tests/test_stats.rs +++ b/tests/test_stats.rs @@ -120,7 +120,7 @@ fn test_stats( S: ::std::ops::Deref, { let (wrk, mut cmd) = setup(name, rows, headers, use_index, nulls, infer_dates); - let field_val = get_field_value(&wrk, &mut cmd, field).unwrap(); + let field_val = get_field_value(&wrk, &mut cmd, field).unwrap_or_default(); // Only compare the first few bytes since floating point arithmetic // can mess with exact comparisons. // when field = skewness, we're comparing a long sequence of the quartile columns,