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

Function datasource1_exception

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

Source from the content-addressed store, hash-verified

705
706
707def datasource1_exception():
708 schema = datasource1_schema()
709
710 def batch_gen(ctx):
711 for n in range(3, 0, -1):
712 # ctx =
713 yield _record_batch_for_range(schema, n - 1)
714 raise RuntimeError("datasource1_exception")
715 return make_udt_func(schema, batch_gen)
716
717
718def datasource1_schema():

Callers

nothing calls this directly

Calls 2

datasource1_schemaFunction · 0.85
make_udt_funcFunction · 0.85

Tested by

no test coverage detected