Skip to content

Commit

Permalink
add back resolved for Alias
Browse files Browse the repository at this point in the history
  • Loading branch information
chenghao-intel committed Apr 17, 2015
1 parent 556e982 commit c2a5132
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ case class Alias(child: Expression, name: String)(
extends NamedExpression with trees.UnaryNode[Expression] {

override type EvaluatedType = Any
// Alias(Generator, xx) need to be transformed into Generate(generator, ...)
override lazy val resolved = childrenResolved && !child.isInstanceOf[Generator]

override def eval(input: Row): Any = child.eval(input)

Expand Down

0 comments on commit c2a5132

Please sign in to comment.