Skip to content

Commit 381ef4e

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 <[email protected]> Closes #16170 from hvanhovell/SPARK-18634.
1 parent 7863c62 commit 381ef4e

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
@@ -93,7 +93,7 @@ case class Generate(
9393

9494
override def producedAttributes: AttributeSet = AttributeSet(generatorOutput)
9595

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

0 commit comments

Comments
 (0)