From aeb91b2f82bf0d5b03c88f18c86b038111dba44b Mon Sep 17 00:00:00 2001 From: Liang-Chi Hsieh Date: Sun, 28 Jan 2024 14:56:10 -0800 Subject: [PATCH] Fix test --- .../core/tests/user_defined/user_defined_scalar_functions.rs | 3 --- 1 file changed, 3 deletions(-) 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, ))