Storing GeoParquet with zstd compression
#3109
-
|
I am exploring to store GeoParquet files with Sedona Spark (Python). According to this best practice guide (https://github.com/opengeospatial/geoparquet/blob/main/format-specs/distributing-geoparquet.md) the compression type should be does Sedona support storing GeoParquet with |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Yes, Sedona supports Per-write, via the df.write.format("geoparquet") \
.option("compression", "zstd") \
.mode("overwrite") \
.save("path/to/output")Or globally on the session: config = SedonaContext.builder() \
.config("spark.sql.parquet.compression.codec", "zstd") \
.getOrCreate()Supported codec values are I checked this locally on a small point dataset (5,000 rows). Writing with the default vs.
The output filename gets a The option just isn't called out in the GeoParquet docs — worth adding a note there. |
Beta Was this translation helpful? Give feedback.
Yes, Sedona supports
zstd(and any Parquet codec) for GeoParquet writes. The GeoParquet writer reuses Spark's standard Parquet compression handling, so you set it the same way you would for a plain Parquet write.Per-write, via the
compressionoption:Or globally on the session:
Supported codec values are
none/uncompressed,snappy(the default),gzip,lzo,brotli,lz4, andzstd.zstdis bundled in the Parquet library that ships with Spark 3.3+, so no extra…