Skip to content

Commit 9309786

Browse files
yhuaimarmbrus
authored andcommitted
[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 apache#2074 from yhuai/makeFunctionRegistryTransient and squashes the following commits: 6534e7d [Yin Huai] Make functionRegistry transient. (cherry picked from commit 2fb1c72) Signed-off-by: Michael Armbrust <michael@databricks.com>
1 parent 5689660 commit 9309786

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveContext.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ class HiveContext(sc: SparkContext) extends SQLContext(sc) {
255255
}
256256

257257
// Note that HiveUDFs will be overridden by functions registered in this context.
258+
@transient
258259
override protected[sql] lazy val functionRegistry =
259260
new HiveFunctionRegistry with OverrideFunctionRegistry
260261

0 commit comments

Comments
 (0)