Skip to content
Snippets Groups Projects
Commit 381ef4ea authored by Herman van Hovell's avatar Herman van Hovell
Browse files

[SPARK-18634][SQL][TRIVIAL] Touch-up Generate

## What changes were proposed in this pull request?
I jumped the gun on merging https://github.com/apache/spark/pull/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.
parent 7863c623
No related branches found
No related tags found
No related merge requests found
...@@ -93,7 +93,7 @@ case class Generate( ...@@ -93,7 +93,7 @@ case class Generate(
override def producedAttributes: AttributeSet = AttributeSet(generatorOutput) 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 // prepend the new qualifier to the existed one
generatorOutput.map(a => a.withQualifier(Some(q))) generatorOutput.map(a => a.withQualifier(Some(q)))
}.getOrElse(generatorOutput) }.getOrElse(generatorOutput)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment