File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet
hive/src/main/scala/org/apache/spark/sql/hive/execution Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ package org.apache.spark.sql.execution.datasources.parquet
1919
2020import java .util .Locale
2121
22- import org .apache .parquet .hadoop .metadata .CompressionCodecName
2322import org .apache .parquet .hadoop .ParquetOutputFormat
23+ import org .apache .parquet .hadoop .metadata .CompressionCodecName
2424
2525import org .apache .spark .sql .catalyst .util .CaseInsensitiveMap
2626import org .apache .spark .sql .internal .SQLConf
Original file line number Diff line number Diff line change @@ -20,9 +20,11 @@ package org.apache.spark.sql.hive.execution
2020import java .util .Locale
2121
2222import scala .collection .JavaConverters ._
23+
2324import org .apache .hadoop .hive .ql .plan .{FileSinkDesc , TableDesc }
2425import org .apache .orc .OrcConf .COMPRESS
2526import org .apache .parquet .hadoop .ParquetOutputFormat
27+
2628import org .apache .spark .sql .catalyst .util .CaseInsensitiveMap
2729import org .apache .spark .sql .execution .datasources .orc .OrcOptions
2830import org .apache .spark .sql .execution .datasources .parquet .ParquetOptions
@@ -110,7 +112,7 @@ object HiveOptions {
110112 " mapkeyDelim" -> " mapkey.delim" ,
111113 " lineDelim" -> " line.delim" ).map { case (k, v) => k.toLowerCase(Locale .ROOT ) -> v }
112114
113- def getHiveWriteCompression (tableInfo : TableDesc , sqlConf : SQLConf ): Option [(String , String )]= {
115+ def getHiveWriteCompression (tableInfo : TableDesc , sqlConf : SQLConf ): Option [(String , String )] = {
114116 tableInfo.getOutputFileFormatClassName.toLowerCase match {
115117 case formatName if formatName.endsWith(" parquetoutputformat" ) =>
116118 val compressionCodec = new ParquetOptions (tableInfo.getProperties.asScala.toMap,
You can’t perform that action at this time.
0 commit comments