Skip to content

Commit

Permalink
Enable LZ4 for page exchange
Browse files Browse the repository at this point in the history
  • Loading branch information
wendigo committed Mar 11, 2025
1 parent a24cdc6 commit 6f2f439
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/trino-main/src/main/java/io/trino/FeaturesConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public class FeaturesConfig
/**
* default value is overwritten for fault tolerant execution in {@link #applyFaultTolerantExecutionDefaults()}}
*/
private CompressionCodec exchangeCompressionCodec = NONE;
private CompressionCodec exchangeCompressionCodec = LZ4;
private boolean pagesIndexEagerCompactionEnabled;
private boolean omitDateTimeTypePrecision;
private int maxRecursionDepth = 10;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import static io.airlift.units.DataSize.Unit.GIGABYTE;
import static io.airlift.units.DataSize.Unit.KILOBYTE;
import static io.airlift.units.DataSize.Unit.MEGABYTE;
import static io.trino.execution.buffer.CompressionCodec.LZ4;
import static io.trino.execution.buffer.CompressionCodec.NONE;
import static io.trino.execution.buffer.CompressionCodec.ZSTD;
import static io.trino.sql.analyzer.RegexLibrary.JONI;
Expand All @@ -53,7 +54,7 @@ public void testDefaults()
.setSpillMaxUsedSpaceThreshold(0.9)
.setMemoryRevokingThreshold(0.9)
.setMemoryRevokingTarget(0.5)
.setExchangeCompressionCodec(NONE)
.setExchangeCompressionCodec(LZ4)
.setExchangeDataIntegrityVerification(DataIntegrityVerification.ABORT)
.setPagesIndexEagerCompactionEnabled(false)
.setFilterAndProjectMinOutputPageSize(DataSize.of(500, KILOBYTE))
Expand Down

0 comments on commit 6f2f439

Please sign in to comment.