Register a scalar function which raises a custom exception.
()
| 312 | |
| 313 | @pytest.fixture(scope="session") |
| 314 | def raising_func_fixture(): |
| 315 | """ |
| 316 | Register a scalar function which raises a custom exception. |
| 317 | """ |
| 318 | def raising_func(ctx): |
| 319 | raise MyError("error raised by scalar UDF") |
| 320 | func_name = "test_raise" |
| 321 | doc = { |
| 322 | "summary": "raising function", |
| 323 | "description": "" |
| 324 | } |
| 325 | pc.register_scalar_function(raising_func, func_name, doc, |
| 326 | {}, pa.int64()) |
| 327 | return raising_func, func_name |
| 328 | |
| 329 | |
| 330 | @pytest.fixture(scope="session") |
nothing calls this directly
no outgoing calls
no test coverage detected