From 3239f9c90807b91f4e5ea981a54a739f90663474 Mon Sep 17 00:00:00 2001 From: ritchie Date: Fri, 11 Oct 2024 16:04:39 +0200 Subject: [PATCH] remove wrong dtype test --- crates/polars/tests/it/lazy/aggregation.rs | 30 ---------------------- 1 file changed, 30 deletions(-) diff --git a/crates/polars/tests/it/lazy/aggregation.rs b/crates/polars/tests/it/lazy/aggregation.rs index 85ded9c742d0..ad043e698e2e 100644 --- a/crates/polars/tests/it/lazy/aggregation.rs +++ b/crates/polars/tests/it/lazy/aggregation.rs @@ -35,33 +35,3 @@ fn test_lazy_agg() { let min = new.column("min").unwrap(); assert_eq!(min, &Column::new("min".into(), [0.1f64, 0.01, 0.1])); } - -#[test] -#[should_panic(expected = "hardcoded error")] -/// Test where apply_multiple returns an error -fn test_apply_multiple_error() { - fn issue() -> Expr { - apply_multiple( - move |_| polars_bail!(ComputeError: "hardcoded error"), - &[col("x"), col("y")], - GetOutput::from_type(DataType::Float64), - true, - ) - } - - let df = df![ - "rf" => ["App", "App", "Gg", "App"], - "x" => ["Hey", "There", "Ante", "R"], - "y" => [Some(-1.11), Some(2.),None, Some(3.4)], - "z" => [Some(-1.11), Some(2.),None, Some(3.4)], - ] - .unwrap(); - - let _res = df - .lazy() - .with_streaming(false) - .group_by_stable([col("rf")]) - .agg([issue()]) - .collect() - .unwrap(); -}