Documentation
¶
Overview ¶
Package parquet provides Parquet reading and writing for the dataset package.
This is a pure API facade — it contains zero heavy imports. The actual Parquet processing is delegated to the engine via the dataset.ParquetReader and dataset.ParquetWriter interfaces:
- Memory engine: uses parquet-go for struct-based row I/O (dataset/memory/parquet.go)
- Arrow engine: uses pqarrow for zero-copy columnar I/O (dataset/arrow/parquet.go)
Usage:
ds, err := parquet.Read(ctx, file, size, eng) err = parquet.Write(ctx, file, ds, eng)
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupportedType = errors.New("parquet: unsupported column type")
ErrUnsupportedType is returned for unsupported column types.
Functions ¶
Types ¶
type Option ¶
type Option func(*dataset.ParquetConfig)
Option is a functional option for Parquet read/write.
func WithCompression ¶
WithCompression sets the compression codec ("snappy", "gzip", "zstd", "lz4", "none"). Default is "snappy".
Click to show internal directories.
Click to hide internal directories.