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

Function datasource1_generator

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

Source from the content-addressed store, hash-verified

695
696
697def datasource1_generator():
698 schema = datasource1_schema()
699
700 def batch_gen(ctx):
701 for n in range(3, 0, -1):
702 # ctx =
703 yield _record_batch_for_range(schema, n - 1)
704 return make_udt_func(schema, batch_gen)
705
706
707def datasource1_exception():

Callers

nothing calls this directly

Calls 2

datasource1_schemaFunction · 0.85
make_udt_funcFunction · 0.85

Tested by

no test coverage detected