Skip to content

Commit f5c5a07

Browse files
committed
[SPARK-18634][SQL][TRIVIAL] Touch-up Generate
## What changes were proposed in this pull request? I jumped the gun on merging #16120, and missed a tiny potential problem. This PR fixes that by changing a val into a def; this should prevent potential serialization/initialization weirdness from happening. ## How was this patch tested? Existing tests. Author: Herman van Hovell <hvanhovell@databricks.com> Closes #16170 from hvanhovell/SPARK-18634. (cherry picked from commit 381ef4e) Signed-off-by: Herman van Hovell <hvanhovell@databricks.com>
1 parent bde1d41 commit f5c5a07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/basicLogicalOperators.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ case class Generate(
9191

9292
override def producedAttributes: AttributeSet = AttributeSet(generatorOutput)
9393

94-
val qualifiedGeneratorOutput: Seq[Attribute] = qualifier.map { q =>
94+
def qualifiedGeneratorOutput: Seq[Attribute] = qualifier.map { q =>
9595
// prepend the new qualifier to the existed one
9696
generatorOutput.map(a => a.withQualifier(Some(q)))
9797
}.getOrElse(generatorOutput)

0 commit comments

Comments
 (0)