Skip to content

Commit

Permalink
fix the code style issue
Browse files Browse the repository at this point in the history
  • Loading branch information
xinyunh committed Sep 2, 2014
1 parent 39f0309 commit 8843643
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -514,5 +514,6 @@ case class LastFunction(expr: Expression, base: AggregateExpression) extends Agg
result = input
}

override def eval(input: Row): Any = if (result != null) expr.eval(result.asInstanceOf[Row]) else null
override def eval(input: Row): Any = if (result != null) expr.eval(result.asInstanceOf[Row])
else null
}
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ case class Power(base: Expression, exponent: Expression) extends Expression {
type EvaluatedType = Any

def dataType: DataType = {
if (!resolved) throw new UnresolvedException(this, s"Cannot resolve since $children are not resolved")
if (!resolved) {
throw new UnresolvedException(this, s"Cannot resolve since $children are not resolved")
}
DoubleType
}
override def foldable = base.foldable && exponent.foldable
Expand Down

0 comments on commit 8843643

Please sign in to comment.