From a5b818562d5db7d65f00e5acd2c8bf7d44bd869a Mon Sep 17 00:00:00 2001 From: Joel Natividad <1980690+jqnatividad@users.noreply.github.com> Date: Thu, 17 Oct 2024 06:15:59 -0400 Subject: [PATCH] `validate`: specify min_len for parallel iterators --- src/cmd/validate.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cmd/validate.rs b/src/cmd/validate.rs index ef152f1ff..fae5fa1f7 100644 --- a/src/cmd/validate.rs +++ b/src/cmd/validate.rs @@ -695,6 +695,7 @@ pub fn run(argv: &[&str]) -> CliResult<()> { // validation_results vector should have same row count and in same order as input CSV batch .par_iter() + .with_min_len(1024) .map(|record| do_json_validation(&header_types, header_len, record, &schema_compiled)) .collect_into_vec(&mut validation_results);