Skip to content
Discussion options

You must be logged in to vote

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 compression option:

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 none/uncompressed, snappy (the default), gzip, lzo, brotli, lz4, and zstd. zstd is bundled in the Parquet library that ships with Spark 3.3+, so no extra…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@JakobMiksch
Comment options

@JakobMiksch
Comment options

Answer selected by JakobMiksch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants