Revision 725ce337cb1f24f666e99f7f0a3742333d116abb authored by Yikf on 23 June 2022, 05:04:05 UTC, committed by Wenchen Fan on 23 June 2022, 05:07:28 UTC
The option of DataFrameWriterV2 should be passed to storage properties if fallback to v1, to support something such as compressed formats

example:

`spark.range(0, 100).writeTo("t1").option("compression", "zstd").using("parquet").create`

**before**

gen: part-00000-644a65ed-0e7a-43d5-8d30-b610a0fb19dc-c000.**snappy**.parquet ...

**after**

gen: part-00000-6eb9d1ae-8fdb-4428-aea3-bd6553954cdd-c000.**zstd**.parquet ...

No

new test

Closes #36941 from Yikf/writeV2option.

Authored-by: Yikf <yikaifei1@gmail.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
(cherry picked from commit e5b7fb85b2d91f2e84dc60888c94e15b53751078)
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
1 parent 22dae38
History

README.md

back to top