Skip to content

Commit

Permalink
validate: specify min_len for parallel iterators
Browse files Browse the repository at this point in the history
  • Loading branch information
jqnatividad committed Oct 17, 2024
1 parent 651e998 commit a5b8185
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cmd/validate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit a5b8185

Please sign in to comment.