diff --git a/datafusion/core/tests/user_defined/user_defined_scalar_functions.rs b/datafusion/core/tests/user_defined/user_defined_scalar_functions.rs index 35419d20cee1..cc6cee9c3906 100644 --- a/datafusion/core/tests/user_defined/user_defined_scalar_functions.rs +++ b/datafusion/core/tests/user_defined/user_defined_scalar_functions.rs @@ -174,9 +174,6 @@ async fn scalar_udf_zero_params() -> Result<()> { ctx.register_batch("t", batch)?; // create function just returns 100 regardless of inp let myfunc = Arc::new(|args: &[ColumnarValue]| { - let ColumnarValue::Scalar(_) = &args[0] else { - panic!("expect scalar") - }; Ok(ColumnarValue::Array( Arc::new((0..1).map(|_| 100).collect::()) as ArrayRef, ))