Starting from spark version 2.1.0,"snappy" is the default compression and before that version "gzip" is default compression format in spark.