diff options
author | Yin Huai <yhuai@databricks.com> | 2016-01-25 12:59:11 -0800 |
---|---|---|
committer | Yin Huai <yhuai@databricks.com> | 2016-01-25 12:59:11 -0800 |
commit | 00026fa9912ecee5637f1e7dd222f977f31f6766 (patch) | |
tree | ecc5c0cc90e80e2d52b3ea4c0e7739be0ec8e305 | |
parent | 7d877c3439d872ec2a9e07d245e9c96174c0cf00 (diff) | |
download | spark-00026fa9912ecee5637f1e7dd222f977f31f6766.tar.gz spark-00026fa9912ecee5637f1e7dd222f977f31f6766.tar.bz2 spark-00026fa9912ecee5637f1e7dd222f977f31f6766.zip |
[SPARK-12901][SQL][HOT-FIX] Fix scala 2.11 compilation.
-rw-r--r-- | sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/csv/CSVOptions.scala | 2 | ||||
-rw-r--r-- | sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/json/JSONOptions.scala | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/csv/CSVOptions.scala b/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/csv/CSVOptions.scala index 5d0e99d760..709daccbbe 100644 --- a/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/csv/CSVOptions.scala +++ b/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/csv/CSVOptions.scala @@ -23,7 +23,7 @@ import org.apache.spark.Logging import org.apache.spark.sql.execution.datasources.CompressionCodecs private[sql] class CSVOptions( - @transient parameters: Map[String, String]) + @transient private val parameters: Map[String, String]) extends Logging with Serializable { private def getChar(paramName: String, default: Char): Char = { diff --git a/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/json/JSONOptions.scala b/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/json/JSONOptions.scala index 0a083b5e35..fe5b20697e 100644 --- a/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/json/JSONOptions.scala +++ b/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/json/JSONOptions.scala @@ -27,7 +27,7 @@ import org.apache.spark.sql.execution.datasources.CompressionCodecs * Most of these map directly to Jackson's internal options, specified in [[JsonParser.Feature]]. */ private[sql] class JSONOptions( - @transient parameters: Map[String, String]) + @transient private val parameters: Map[String, String]) extends Serializable { val samplingRatio = |