Skip to content

Commit d1930ec

Browse files
Davies Liudavies
Davies Liu
authored andcommitted
[SPARK-12003] [SQL] remove the prefix for name after expanded star
Right now, the expended start will include the name of expression as prefix for column, that's not better than without expending, we should not have the prefix. Author: Davies Liu <[email protected]> Closes apache#9984 from davies/expand_star.
1 parent cc243a0 commit d1930ec

File tree

1 file changed

+1
-1
lines changed
  • sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis

1 file changed

+1
-1
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/unresolved.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ case class UnresolvedStar(target: Option[Seq[String]]) extends Star with Unevalu
204204
case s: StructType => s.zipWithIndex.map {
205205
case (f, i) =>
206206
val extract = GetStructField(attribute.get, i)
207-
Alias(extract, target.get + "." + f.name)()
207+
Alias(extract, f.name)()
208208
}
209209

210210
case _ => {

0 commit comments

Comments
 (0)