Skip to main content

Module table_batches

Module table_batches 

Source
Expand description

Start reading a table generator into Arrow.

Functions§

table_batches
Read iterable (a table function’s generator) on a background thread (calling snapshot, when given, for ctx.state as each piece crosses), batching dict yields, and parse what it yields into Arrow on others, expanding the objects context lists to flatten and running sl.http jobs with its connections; at most options.max_queued + options.parse_threads batches wait between them and the consumer, so the generator pauses when the consumer falls behind.