diff options
author | Yin Huai <huaiyin.thu@gmail.com> | 2014-08-23 12:46:41 -0700 |
---|---|---|
committer | Michael Armbrust <michael@databricks.com> | 2014-08-23 12:46:41 -0700 |
commit | 2fb1c72ea21e137c8b60a72e5aecd554c71b16e1 (patch) | |
tree | 0111720000694dc841aa3fdf1b3c5f1ac35a6c5c /sql/hive | |
parent | 76bb044b9e327639002034ad4c06e6bd8e20d018 (diff) | |
download | spark-2fb1c72ea21e137c8b60a72e5aecd554c71b16e1.tar.gz spark-2fb1c72ea21e137c8b60a72e5aecd554c71b16e1.tar.bz2 spark-2fb1c72ea21e137c8b60a72e5aecd554c71b16e1.zip |
[SQL] Make functionRegistry in HiveContext transient.
Seems we missed `transient` for the `functionRegistry` in `HiveContext`.
cc: marmbrus
Author: Yin Huai <huaiyin.thu@gmail.com>
Closes #2074 from yhuai/makeFunctionRegistryTransient and squashes the following commits:
6534e7d [Yin Huai] Make functionRegistry transient.
Diffstat (limited to 'sql/hive')
-rw-r--r-- | sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveContext.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveContext.scala b/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveContext.scala index ff32c7c90a..29baefe714 100644 --- a/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveContext.scala +++ b/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveContext.scala @@ -255,6 +255,7 @@ class HiveContext(sc: SparkContext) extends SQLContext(sc) { } // Note that HiveUDFs will be overridden by functions registered in this context. + @transient override protected[sql] lazy val functionRegistry = new HiveFunctionRegistry with OverrideFunctionRegistry |