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

Function _test_datasource1_udt

python/pyarrow/tests/test_udf.py:730–739  ·  view source on GitHub ↗
(func_maker)

Source from the content-addressed store, hash-verified

728
729
730def _test_datasource1_udt(func_maker):
731 schema = datasource1_schema()
732 func = func_maker()
733 func_name = func_maker.__name__
734 func_args = datasource1_args(func, func_name)
735 pc.register_tabular_function(*func_args)
736 n = 3
737 for item in pc.call_tabular_function(func_name):
738 n -= 1
739 assert item == _record_batch_for_range(schema, n)
740
741
742def test_udt_datasource1_direct():

Calls 3

datasource1_schemaFunction · 0.85
datasource1_argsFunction · 0.85
_record_batch_for_rangeFunction · 0.85

Tested by

no test coverage detected