Skip to main content

table_batches

Function table_batches 

Source
pub fn table_batches(
    iterable: &Bound<'_, PyAny>,
    snapshot: Option<&Bound<'_, PyAny>>,
    options: CrossingOptions,
    context: ReadContext,
) -> TableBatches ⓘ
Expand description

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.