Skip to content

Commit

Permalink
fix: modify test_stats helper to handle empty fields
Browse files Browse the repository at this point in the history
  • Loading branch information
jqnatividad committed Dec 13, 2024
1 parent 910be23 commit 6c55d7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ fn test_stats<S>(
S: ::std::ops::Deref<Target = str>,
{
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,
Expand Down

0 comments on commit 6c55d7b

Please sign in to comment.