Skip to content

Commit

Permalink
[SPARK-18634][SQL][TRIVIAL] Touch-up Generate
Browse files Browse the repository at this point in the history
## 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.
  • Loading branch information
hvanhovell committed Dec 6, 2016
1 parent 7863c62 commit 381ef4e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ case class Generate(

override def producedAttributes: AttributeSet = AttributeSet(generatorOutput)

val qualifiedGeneratorOutput: Seq[Attribute] = qualifier.map { q =>
def qualifiedGeneratorOutput: Seq[Attribute] = qualifier.map { q =>
// prepend the new qualifier to the existed one
generatorOutput.map(a => a.withQualifier(Some(q)))
}.getOrElse(generatorOutput)
Expand Down

0 comments on commit 381ef4e

Please sign in to comment.