Skip to main content

format_parquet

Function format_parquet 

Source
pub fn format_parquet(
    result: ProcessedResult,
    options: Option<&ParquetOptions>,
) -> Result<Vec<u8>, SofError>
Expand description

Encodes a ProcessedResult as a single Parquet file in memory.

Schema is inferred from result.columns and the row values; type mapping follows Pathling conventions (boolean→BOOLEAN, string/code/uri→UTF8, integer→INT32, decimal→FLOAT64, dateTime/date→UTF8). Use format_parquet_multi_file when the output needs to be split across files by size.