pub fn rows_to_arrow(
rows: &[Row],
projected_schema: &Option<SchemaRef>,
) -> Result<RecordBatch>Available on crate feature
postgres only.Expand description
Converts Postgres Rows to an Arrow RecordBatch. Assumes that all rows have the same schema and
sets the schema based on the first row.
ยงErrors
Returns an error if there is a failure in converting the rows to a RecordBatch.