pub fn render(
schema: &SchemaRef,
batches: &[RecordBatch],
format: OutputFormat,
) -> Result<String, EngineError>Expand description
Renders batches in format, terminated by a newline.
schema is carried separately because an empty result has no batch to take
it from, and a CSV reader handed nothing at all cannot tell an empty result
from a failed one — so the header row is written even when no row is.