Skip to main content

run

Function run 

Source
pub fn run(
    lf: LazyFrame,
    request: &ExportRequest,
    polars_streaming: bool,
    written: impl FnMut(u64) + Send + 'static,
) -> Result<()>
Expand description

Run an export: plan lf as the format needs (ExportFormat::prepare), write it to the request’s path by its Route, and commit. written hears the bytes written so far: 0 as the write starts, then a few times a second. The destination changes only if every byte was written.