diff --git a/src/util.rs b/src/util.rs index bc11b6808..eeca99ca9 100644 --- a/src/util.rs +++ b/src/util.rs @@ -2102,8 +2102,8 @@ pub fn get_stats_records( #[cfg(feature = "polars")] StatsMode::PolarsSchema => { // StatsMode::PolarsSchema - // we need data types and ranges - format!("stats\t{input}\t--infer-boolean\t--stats-jsonl\t--output\t{tempfile_path}") + // we need data types, ranges & cardinality + format!("stats\t{input}\t--cardinality\t--stats-jsonl\t--output\t{tempfile_path}") }, StatsMode::None => unreachable!(), // we returned early on None earlier }; diff --git a/tests/test_joinp.rs b/tests/test_joinp.rs index 99fbc779f..e00b774fe 100644 --- a/tests/test_joinp.rs +++ b/tests/test_joinp.rs @@ -195,6 +195,8 @@ joinp_test!(joinp_inner, |wrk: Workdir, mut cmd: process::Command| { joinp_test_cache_schema!( joinp_inner_cache_schema, |wrk: Workdir, mut cmd: process::Command| { + wrk.assert_success(&mut cmd); + let got: Vec> = wrk.read_stdout(&mut cmd); let expected = make_rows( false, @@ -1701,9 +1703,9 @@ fn test_joinp_cache_schema() { .arg("--cache-schema") .arg("1"); - // error is expected as has_text is interpreted as bool, rather than a number of just a string - // recreates error reported in https://github.com/dathere/qsv/issues/2369 - wrk.assert_err(&mut cmd); + // success is expected as has_text is no longer interpreted as bool + // confirms bug reported in https://github.com/dathere/qsv/issues/2369 no longer exists + wrk.assert_success(&mut cmd); // Verify schema files were created assert!(wrk.path("left.pschema.json").exists());