Skip to content

Commit 9d9ca91

Browse files
Ishiiharamarmbrus
authored andcommitted
[SQL]Small bug in unresolved.scala
name should throw exception with name instead of exprId. Author: Liquan Pei <liquanpei@gmail.com> Closes #2758 from Ishiihara/SparkSQL-bug and squashes the following commits: aa36a3b [Liquan Pei] small bug
1 parent e6e3770 commit 9d9ca91

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
@@ -88,7 +88,7 @@ case class Star(
8888
mapFunction: Attribute => Expression = identity[Attribute])
8989
extends Attribute with trees.LeafNode[Expression] {
9090

91-
override def name = throw new UnresolvedException(this, "exprId")
91+
override def name = throw new UnresolvedException(this, "name")
9292
override def exprId = throw new UnresolvedException(this, "exprId")
9393
override def dataType = throw new UnresolvedException(this, "dataType")
9494
override def nullable = throw new UnresolvedException(this, "nullable")

0 commit comments

Comments
 (0)