Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/arrow
/ batch_gen
Function
batch_gen
python/pyarrow/tests/test_udf.py:700–703 ·
view source on GitHub ↗
(ctx)
Source
from the content-addressed store, hash-verified
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
Callers
2
__call__
Method · 0.70
InitFromBlock
Method · 0.50
Calls
1
_record_batch_for_range
Function · 0.85
Tested by
no test coverage detected