diff --git a/src/cmd/tojsonl.rs b/src/cmd/tojsonl.rs index 2448e457c..056fdd87d 100644 --- a/src/cmd/tojsonl.rs +++ b/src/cmd/tojsonl.rs @@ -117,6 +117,13 @@ pub fn run(argv: &[&str]) -> CliResult<()> { args.flag_memcheck, )?; + // use regular CSV reader count on Windows + // as the polars-powered count_rows is failing CI tests on Windows + // I suspect there is an optimization in Polars that is causing this + // CI test flakiness + #[cfg(windows)] + let record_count = util::count_rows_regular(&conf)?; + #[cfg(not(windows))] let record_count = util::count_rows(&conf)?; // we're calling the schema command to infer data types and enums