Skip to content
Snippets Groups Projects
Commit d1930ec0 authored by Davies Liu's avatar Davies Liu Committed by Davies Liu
Browse files

[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 <davies@databricks.com>

Closes #9984 from davies/expand_star.
parent cc243a07
No related branches found
No related tags found
No related merge requests found
......@@ -204,7 +204,7 @@ case class UnresolvedStar(target: Option[Seq[String]]) extends Star with Unevalu
case s: StructType => s.zipWithIndex.map {
case (f, i) =>
val extract = GetStructField(attribute.get, i)
Alias(extract, target.get + "." + f.name)()
Alias(extract, f.name)()
}
case _ => {
......
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