MCPcopy Create free account
hub / github.com/apache/arrow / exception_agg_func_fixture

Function exception_agg_func_fixture

python/pyarrow/tests/test_udf.py:73–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71
72@pytest.fixture(scope="session")
73def 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")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected