Skip to content

Commit

Permalink
remove wrong dtype test
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Oct 11, 2024
1 parent e178d84 commit 3239f9c
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions crates/polars/tests/it/lazy/aggregation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

0 comments on commit 3239f9c

Please sign in to comment.