From d6a8f4a06c91b04e260eafd00f48d73a4c3031ef Mon Sep 17 00:00:00 2001 From: wxp Date: Wed, 17 Jul 2024 10:17:23 +0800 Subject: [PATCH] update default compression from zstd to lz4 - file.compression - spill-compression - lookup.cache-spill-compression and manifest.compression to none --- .../src/main/java/org/apache/paimon/CoreOptions.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/paimon-common/src/main/java/org/apache/paimon/CoreOptions.java b/paimon-common/src/main/java/org/apache/paimon/CoreOptions.java index 8864bc3d3344..b9791fab2f3b 100644 --- a/paimon-common/src/main/java/org/apache/paimon/CoreOptions.java +++ b/paimon-common/src/main/java/org/apache/paimon/CoreOptions.java @@ -131,7 +131,7 @@ public class CoreOptions implements Serializable { public static final ConfigOption FILE_FORMAT = key("file.format") .stringType() - .defaultValue(FILE_FORMAT_PARQUET) + .defaultValue(FILE_FORMAT_ORC) .withDescription( "Specify the message format of data files, currently orc, parquet and avro are supported."); @@ -157,7 +157,7 @@ public class CoreOptions implements Serializable { public static final ConfigOption FILE_COMPRESSION = key("file.compression") .stringType() - .defaultValue("zstd") + .defaultValue("lz4") .withDescription( "Default file compression. For faster read and write, it is recommended to use zstd."); @@ -196,7 +196,7 @@ public class CoreOptions implements Serializable { public static final ConfigOption MANIFEST_COMPRESSION = key("manifest.compression") .stringType() - .defaultValue("zstd") + .defaultValue("none") .withDescription("Default file compression for manifest."); public static final ConfigOption MANIFEST_TARGET_FILE_SIZE = @@ -351,7 +351,7 @@ public class CoreOptions implements Serializable { public static final ConfigOption SPILL_COMPRESSION = key("spill-compression") .stringType() - .defaultValue("zstd") + .defaultValue("lz4") .withDescription( "Compression for spill, currently zstd, lzo and zstd are supported."); @@ -827,7 +827,7 @@ public class CoreOptions implements Serializable { public static final ConfigOption LOOKUP_CACHE_SPILL_COMPRESSION = key("lookup.cache-spill-compression") .stringType() - .defaultValue("zstd") + .defaultValue("lz4") .withDescription( "Spill compression for lookup cache, currently zstd, none, lz4 and lzo are supported.");