We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ee5d2c commit 04ae500Copy full SHA for 04ae500
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/basicOperators.scala
@@ -69,12 +69,12 @@ case class Generate(
69
override def expressions: Seq[Expression] = generator :: Nil
70
71
def output: Seq[Attribute] = {
72
- val withoutQualifier = if (join) child.output ++ generatorOutput else generatorOutput
73
-
74
- qualifier.map(q =>
+ val qualified = qualifier.map(q =>
75
// prepend the new qualifier to the existed one
76
- withoutQualifier.map(a => a.withQualifiers(q +: a.qualifiers))
77
- ).getOrElse(withoutQualifier)
+ generatorOutput.map(a => a.withQualifiers(q +: a.qualifiers))
+ ).getOrElse(generatorOutput)
+
+ if (join) child.output ++ qualified else qualified
78
}
79
80
0 commit comments