Skip to content

Commit

Permalink
After review (thanks Sean!)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaceklaskowski committed Jan 22, 2018
1 parent 9fff0ed commit 2d5f07d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1222,7 +1222,7 @@ class Analyzer(
wf
}
// We get an aggregate function, we need to wrap it in an AggregateExpression.
case agg: AggregateFunction => agg.toAggregateExpression(isDistinct)
case agg: AggregateFunction => AggregateExpression(agg, Complete, isDistinct)
// This function is not an aggregate function, just return the resolved one.
case other =>
if (isDistinct) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ case class UnresolvedGenerator(name: FunctionIdentifier, children: Seq[Expressio
override def prettyName: String = name.unquotedString
override def toString: String = s"'$name(${children.mkString(", ")})"

override def eval(input: InternalRow = EmptyRow): TraversableOnce[InternalRow] =
override def eval(input: InternalRow = null): TraversableOnce[InternalRow] =
throw new UnsupportedOperationException(s"Cannot evaluate expression: $this")

override protected def doGenCode(ctx: CodegenContext, ev: ExprCode): ExprCode =
Expand Down

0 comments on commit 2d5f07d

Please sign in to comment.