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

Function wrong_signature_func_fixture

python/pyarrow/tests/test_udf.py:293–310  ·  view source on GitHub ↗

Register a scalar function with the wrong signature.

()

Source from the content-addressed store, hash-verified

291
292@pytest.fixture(scope="session")
293def wrong_signature_func_fixture():
294 """
295 Register a scalar function with the wrong signature.
296 """
297 # Missing the context argument
298 def wrong_signature():
299 return pa.scalar(1, type=pa.int64())
300
301 func_name = "test_wrong_signature"
302 in_types = {}
303 out_type = pa.int64()
304 doc = {
305 "summary": "UDF with wrong signature",
306 "description": ""
307 }
308 pc.register_scalar_function(wrong_signature, func_name, doc,
309 in_types, out_type)
310 return wrong_signature, func_name
311
312
313@pytest.fixture(scope="session")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected