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

Function varargs_function

python/pyarrow/tests/test_udf.py:181–186  ·  view source on GitHub ↗
(ctx, first, *values)

Source from the content-addressed store, hash-verified

179 Register a varargs scalar function with at least two arguments.
180 """
181 def varargs_function(ctx, first, *values):
182 acc = first
183 for val in values:
184 acc = pc.call_function("add", [acc, val],
185 memory_pool=ctx.memory_pool)
186 return acc
187 func_name = "z=ax+by+c"
188 varargs_doc = {"summary": "z=ax+by+c",
189 "description": "find z from z = ax + by + c"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected