(exception_agg_func_fixture)
| 852 | |
| 853 | @pytest.mark.numpy |
| 854 | def test_hash_agg_exception(exception_agg_func_fixture): |
| 855 | arr1 = pa.array([10, 20, 30, 40, 50], pa.int64()) |
| 856 | arr2 = pa.array([4, 2, 1, 2, 1], pa.int32()) |
| 857 | table = pa.table([arr2, arr1], names=["id", "value"]) |
| 858 | |
| 859 | with pytest.raises(RuntimeError, match='Oops'): |
| 860 | table.group_by("id").aggregate([("value", "y=exception_len(x)")]) |
| 861 | |
| 862 | |
| 863 | @pytest.mark.numpy |