Documentation
¶
Overview ¶
Package parquetio reads and writes Parquet files for the SQL engines (Athena, S3 Select, Firehose format conversion).
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUnsupportedType is returned for a column type the writer cannot encode. ErrUnsupportedType = errors.New("unsupported parquet column type") // ErrBadValue is returned when a cell does not parse as its column type. ErrBadValue = errors.New("invalid parquet cell value") // ErrBadFile is returned when the bytes are not a readable Parquet file. ErrBadFile = errors.New("invalid parquet file") )
Functions ¶
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
File is an opened Parquet file held in memory.
func (*File) ForEach ¶
ForEach streams every row, yielding one value per requested column (case-insensitive match; nil when the column is null or absent). Leaf values are bool, int64, float64 or string (date, timestamp, time and decimal are formatted as Athena prints them); nested columns yield JSON-marshalable map[string]any / []any.
Click to show internal directories.
Click to hide internal directories.