Skip to content

Commit e362d99

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. (cherry picked from commit 381ef4e) Signed-off-by: Herman van Hovell <[email protected]>
1 parent 655297b commit e362d99

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
@@ -94,7 +94,7 @@ case class Generate(
9494

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

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

0 commit comments

Comments
 (0)