Skip to content

Commit 33291d7

Browse files
hvanhovellRobert Kruszewski
authored andcommitted
[SPARK-18634][SQL][TRIVIAL] Touch-up Generate
## What changes were proposed in this pull request? I jumped the gun on merging apache#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 apache#16170 from hvanhovell/SPARK-18634.
1 parent 35e7b2d commit 33291d7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)