Chevron DownCommand-Line Reference
Chevron DownAPI Reference

@loaders.gl/parquet

From-v3.1 BETA

Experimental loader and writer for the Apache Parquet format.

Compression

Internal parquet compression formats are supported as follows:

TypeReadWrite
UNCOMPRESSEDYESYES
GZIPYESYES
SNAPPYYESYES
BROTLIYESNo
LZONONO
LZ4YESYES
LZ4_RAWYESYES
ZSTDYESYES

Encoding

The following Parquet encodings are supported:

EncodingReadWrite
PLAINYESYES
PLAIN_DICTIONARYYESYES
RLE_DICTIONARYYESNO
DELTA_BINARY_PACKEDNONO
DELTA_BYTE_ARRAYNONO
DELTA_LENGTH_BYTE_ARRAYNONO

Repetition

There are three repetition types in Parquet:

RepetitionSupported
REQUIREDYES
OPTIONALYES
REPEATEDYES

Types

TBA - This table is not complete

NameTypeSupported
boolBOOLEAN"
int32INT32"
int64INT64"
int96INT96"
floatFLOAT"
doubleDOUBLE"
bytearrayBYTE_ARRAY"
FixedLenByteArrayFIXED_LEN_BYTE_ARRAY, length=10"
utf8BYTE_ARRAY, convertedtype=UTF8, encoding=PLAIN_DICTIONARY"
int_8INT32, convertedtype=INT32, convertedtype=INT_8"
int_16INT32, convertedtype=INT_16"
int_32INT32, convertedtype=INT_32"
int_64INT64, convertedtype=INT_64"
uint_8INT32, convertedtype=UINT_8"
uint_16INT32, convertedtype=UINT_16"
uint_32INT32, convertedtype=UINT_32"
uint_64INT64, convertedtype=UINT_64"
dateINT32, convertedtype=DATE"
date2INT32, convertedtype=DATE, logicaltype=DATE"
timemillisINT32, convertedtype=TIME_MILLIS"
timemillis2INT32, logicaltype=TIME, logicaltype.isadjustedtoutc=true, logicaltype.unit=MILLIS"
timemicrosINT64, convertedtype=TIME_MICROS"
timemicros2INT64, logicaltype=TIME, logicaltype.isadjustedtoutc=false, logicaltype.unit=MICROS"
timestampmillisINT64, convertedtype=TIMESTAMP_MILLIS"
timestampmillis2INT64, logicaltype=TIMESTAMP, logicaltype.isadjustedtoutc=true, logicaltype.unit=MILLIS"
timestampmicrosINT64, convertedtype=TIMESTAMP_MICROS"
timestampmicros2INT64, logicaltype=TIMESTAMP, logicaltype.isadjustedtoutc=false, logicaltype.unit=MICROS"
intervalBYTE_ARRAY, convertedtype=INTERVAL"
decimal1INT32, convertedtype=DECIMAL, scale=2, precision=9"
decimal2INT64, convertedtype=DECIMAL, scale=2, precision=18"
decimal3FIXED_LEN_BYTE_ARRAY, convertedtype=DECIMAL, scale=2, precision=10, length=12"
decimal4BYTE_ARRAY, convertedtype=DECIMAL, scale=2, precision=20"
decimal5INT32, logicaltype=DECIMAL, logicaltype.precision=10, logicaltype.scale=2"
parquetmap, type=MAP, convertedtype=MAP, keytype=BYTE_ARRAY, keyconvertedtype=UTF8, valuetype=INT32"
listMAP convertedtype=LIST, valuetype=BYTE_ARRAY, valueconvertedtype=UTF8
`repeatedINT32 repetitiontype=REPEATED"`

Attribution

License

@loaders.gl/parquet module is based on Apache 2.0 licensed code.