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

Function test_hash_agg_exception

python/pyarrow/tests/test_udf.py:854–860  ·  view source on GitHub ↗
(exception_agg_func_fixture)

Source from the content-addressed store, hash-verified

852
853@pytest.mark.numpy
854def 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

Callers

nothing calls this directly

Calls 2

aggregateMethod · 0.80
arrayMethod · 0.45

Tested by

no test coverage detected