Skip to content

Commit

Permalink
SPARK-18368: Fix regexp_replace with task serialization.
Browse files Browse the repository at this point in the history
  • Loading branch information
rdblue committed Nov 8, 2016
1 parent b6de0c9 commit 8740a2c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -230,7 +230,7 @@ case class RegExpReplace(subject: Expression, regexp: Expression, rep: Expressio
@transient private var lastReplacement: String = _
@transient private var lastReplacementInUTF8: UTF8String = _
// result buffer write by Matcher
@transient private val result: StringBuffer = new StringBuffer
@transient private lazy val result: StringBuffer = new StringBuffer

override def nullSafeEval(s: Any, p: Any, r: Any): Any = {
if (!p.equals(lastRegex)) {
Expand Down

0 comments on commit 8740a2c

Please sign in to comment.