File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed
datafusion/functions-nested/src Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -790,29 +790,4 @@ mod tests {
790790
791791 Ok ( ( ) )
792792 }
793-
794- #[ test]
795- fn test_simplify_array_has_with_null_haystack ( ) {
796- let haystack = ListArray :: new_null (
797- Arc :: new ( Field :: new_list_field ( DataType :: Int32 , true ) ) ,
798- 1 ,
799- ) ;
800- let haystack = lit ( ScalarValue :: List ( Arc :: new ( haystack) ) ) ;
801- let needle = col ( "c" ) ;
802-
803- let props = ExecutionProps :: new ( ) ;
804- let context = datafusion_expr:: simplify:: SimplifyContext :: new ( & props) ;
805-
806- let expr = match ArrayHas :: new ( )
807- . simplify ( vec ! [ haystack. clone( ) , needle. clone( ) ] , & context)
808- . unwrap ( )
809- {
810- ExprSimplifyResult :: Simplified ( expr) => expr,
811- ExprSimplifyResult :: Original ( _) => {
812- panic ! ( "expected simplified result, not original" )
813- }
814- } ;
815-
816- assert_eq ! ( expr, in_list( col( "c" ) , vec![ ] , false ) ) ;
817- }
818793}
You can’t perform that action at this time.
0 commit comments