@@ -567,7 +567,7 @@ def test_array_functions(stmt, py_expr):
567567
568568 col = column ("arr" )
569569 query_result = df .select (stmt (col )).collect ()[0 ].column (0 )
570- for a , b in zip (query_result , py_expr (data )):
570+ for a , b in zip (query_result , py_expr (data ), strict = False ):
571571 np .testing .assert_array_almost_equal (
572572 np .array (a .as_py (), dtype = float ), np .array (b , dtype = float )
573573 )
@@ -582,7 +582,7 @@ def test_array_function_flatten():
582582 stmt = f .flatten (literal (data ))
583583 py_expr = [py_flatten (data )]
584584 query_result = df .select (stmt ).collect ()[0 ].column (0 )
585- for a , b in zip (query_result , py_expr ):
585+ for a , b in zip (query_result , py_expr , strict = False ):
586586 np .testing .assert_array_almost_equal (
587587 np .array (a .as_py (), dtype = float ), np .array (b , dtype = float )
588588 )
@@ -600,7 +600,7 @@ def test_array_function_cardinality():
600600
601601 query_result = df .select (stmt ).collect ()[0 ].column (0 )
602602
603- for a , b in zip (query_result , py_expr ):
603+ for a , b in zip (query_result , py_expr , strict = False ):
604604 np .testing .assert_array_equal (
605605 np .array ([a .as_py ()], dtype = int ), np .array ([b ], dtype = int )
606606 )
@@ -631,7 +631,7 @@ def test_make_array_functions(make_func):
631631 ]
632632
633633 query_result = df .select (stmt ).collect ()[0 ].column (0 )
634- for a , b in zip (query_result , py_expr ):
634+ for a , b in zip (query_result , py_expr , strict = False ):
635635 np .testing .assert_array_equal (
636636 np .array (a .as_py (), dtype = str ), np .array (b , dtype = str )
637637 )
@@ -664,7 +664,7 @@ def test_array_function_obj_tests(stmt, py_expr):
664664 batch = pa .RecordBatch .from_arrays ([np .array (data , dtype = object )], names = ["arr" ])
665665 df = ctx .create_dataframe ([[batch ]])
666666 query_result = np .array (df .select (stmt ).collect ()[0 ].column (0 ))
667- for a , b in zip (query_result , py_expr (data )):
667+ for a , b in zip (query_result , py_expr (data ), strict = False ):
668668 assert a == b
669669
670670
0 commit comments