Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cloud-fan committed Jun 21, 2015
1 parent 33640ec commit 39c1aef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ class Analyzer(
exprs.map(_ transformDown {
case u @ UnresolvedAlias(child) =>
child match {
case _: UnresolvedAttribute => u
case ne: NamedExpression => ne
case ev: ExtractValueWithStruct => Alias(ev, ev.field.name)()
case g: Generator if g.resolved && g.elementTypes.size > 1 => MultiAlias(g, Nil)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,9 @@ case class UnresolvedExtractValue(child: Expression, extraction: Expression)
override def toString: String = s"$child[$extraction]"
}

case class UnresolvedAlias(child: Expression) extends NamedExpression with trees.UnaryNode[Expression] {
case class UnresolvedAlias(child: Expression) extends NamedExpression
with trees.UnaryNode[Expression] {

override def toAttribute: Attribute = throw new UnresolvedException(this, "toAttribute")
override def qualifiers: Seq[String] = throw new UnresolvedException(this, "qualifiers")
override def exprId: ExprId = throw new UnresolvedException(this, "exprId")
Expand Down

0 comments on commit 39c1aef

Please sign in to comment.