Skip to main content

table_stream

Function table_stream 

Source
pub fn table_stream(
    iterable: &Bound<'_, PyAny>,
    snapshot: Option<&Bound<'_, PyAny>>,
    request: &TableRead,
) -> Result<Box<dyn BatchStream>, String>
Expand description

What iterable (what the table function request reads returned or yields) yields, as the engine’s batches: dicts, Arrow data, sl.json/sl.ndjson, sl.http jobs and sl.checkpoints cross as SQLLoad’s own tables’ do, with the table’s flatten, naming, masked columns, cursor and connections from request. snapshot, for a logged table, returns its ctx.state as JSON as each piece crosses. Fails when this interpreter’s sqlload_api is not this crate’s version.