Skip to contents

Native Parquet writer: single row group, PLAIN encoding, all columns OPTIONAL. Output is read back unchanged by pyarrow and nanoparquet.

Usage

morie_write_parquet(df, path, compression = "snappy")

Arguments

df

A data.frame.

path

Destination path.

compression

"snappy" (default) or NULL for uncompressed.

Value

path, invisibly.

Examples

df <- data.frame(a = 1:3, b = c("x", "y", "z"), stringsAsFactors = FALSE)
p <- tempfile(fileext = ".parquet")
morie_write_parquet(df, p)