diff options
author | Alex Baretta <alexbaretta@gmail.com> | 2015-01-14 11:51:55 -0800 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2015-01-14 11:51:55 -0800 |
commit | 2fd7f72b6b0b24bec12331c7bbbcf6bfc265d2ec (patch) | |
tree | c3c79cb15ff4cff7c4f7e90ed5c6e278a6f15abf | |
parent | 259936be710f367e1d1e019ee7b93fb68dfc33d0 (diff) | |
download | spark-2fd7f72b6b0b24bec12331c7bbbcf6bfc265d2ec.tar.gz spark-2fd7f72b6b0b24bec12331c7bbbcf6bfc265d2ec.tar.bz2 spark-2fd7f72b6b0b24bec12331c7bbbcf6bfc265d2ec.zip |
[SPARK-5235] Make SQLConf Serializable
Declare SQLConf to be serializable to fix "Task not serializable" exceptions in SparkSQL
Author: Alex Baretta <alexbaretta@gmail.com>
Closes #4031 from alexbaretta/SPARK-5235-SQLConf and squashes the following commits:
c2103f5 [Alex Baretta] [SPARK-5235] Make SQLConf Serializable
-rw-r--r-- | sql/core/src/main/scala/org/apache/spark/sql/SQLConf.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/core/src/main/scala/org/apache/spark/sql/SQLConf.scala b/sql/core/src/main/scala/org/apache/spark/sql/SQLConf.scala index 206d16f5b3..3bc201a242 100644 --- a/sql/core/src/main/scala/org/apache/spark/sql/SQLConf.scala +++ b/sql/core/src/main/scala/org/apache/spark/sql/SQLConf.scala @@ -61,7 +61,7 @@ private[spark] object SQLConf { * * SQLConf is thread-safe (internally synchronized, so safe to be used in multiple threads). */ -private[sql] class SQLConf { +private[sql] class SQLConf extends Serializable { import SQLConf._ /** Only low degree of contention is expected for conf, thus NOT using ConcurrentHashMap. */ |