()
| 71 | |
| 72 | @pytest.fixture(scope="session") |
| 73 | def exception_agg_func_fixture(): |
| 74 | def func(ctx, x): |
| 75 | raise RuntimeError("Oops") |
| 76 | return pa.scalar(len(x)) |
| 77 | |
| 78 | func_name = "y=exception_len(x)" |
| 79 | func_doc = empty_udf_doc |
| 80 | |
| 81 | pc.register_aggregate_function(func, |
| 82 | func_name, |
| 83 | func_doc, |
| 84 | { |
| 85 | "x": pa.int64(), |
| 86 | }, |
| 87 | pa.int64() |
| 88 | ) |
| 89 | return func, func_name |
| 90 | |
| 91 | |
| 92 | @pytest.fixture(scope="session") |
nothing calls this directly
no outgoing calls
no test coverage detected