Github user felixcheung commented on a diff in the pull request:
https://github.com/apache/spark/pull/21902#discussion_r205933175
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala ---
@@ -1449,6 +1451,16 @@ object SQLConf {
.intConf
.checkValues((1 to 9).toSet + Deflater.DEFAULT_COMPRESSION)
.createWithDefault(Deflater.DEFAULT_COMPRESSION)
+
+ val AVRO_XZ_LEVEL = buildConf("spark.sql.avro.xz.level")
+ .doc("Compression level for the XZ codec used in writing of AVRO
files. " +
+ "Valid value must be in the range of from 0 to 9 inclusive: " +
+ "0-3 for fast with medium compression, 4-6 are fairly slow levels
with high compression. " +
+ "The levels 7-9 are like the level 6 but use bigger dictionaries and
have higher " +
+ "compressor and decompressor memory requirements. Default level is
6.")
--- End diff --
use `LZMA2Options.PRESET_DEFAULT` in place of literal `6`
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]