Skip to content

Commit

Permalink
Enable compression by default
Browse files Browse the repository at this point in the history
  • Loading branch information
liancheng committed Apr 11, 2014
1 parent 4390bcc commit 99382bf
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,8 @@ private[sql] trait AllCompressionSchemes extends WithCompressionSchemes {
}

private[sql] object CompressionScheme {
val compressionEnabled =
System.getProperty("spark.sql.inMemoryCompression.enabled", "false").toBoolean

val all: Seq[CompressionScheme] = if (compressionEnabled) {
val all: Seq[CompressionScheme] =
Seq(PassThrough, RunLengthEncoding, DictionaryEncoding, BooleanBitSet, IntDelta, LongDelta)
} else {
Seq(PassThrough)
}

private val typeIdToScheme = all.map(scheme => scheme.typeId -> scheme).toMap

Expand Down

0 comments on commit 99382bf

Please sign in to comment.