Github user fjh100456 commented on a diff in the pull request:
https://github.com/apache/spark/pull/19218#discussion_r143624196
--- Diff:
sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/SaveAsHiveFile.scala
---
@@ -68,6 +68,26 @@ private[hive] trait SaveAsHiveFile extends
DataWritingCommand {
.get("mapreduce.output.fileoutputformat.compress.type"))
}
+ fileSinkConf.tableInfo.getOutputFileFormatClassName match {
+ case formatName if formatName.endsWith("ParquetOutputFormat") =>
+ val compressionConf = "parquet.compression"
+ val compressionCodec = getCompressionByPriority(fileSinkConf,
compressionConf,
+ sparkSession.sessionState.conf.parquetCompressionCodec) match {
--- End diff --
`compressionConf` will be used below, I've adjusted the format, thanks.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]