Skip to content

Commit

Permalink
Fix evaluated value type of ApproxCountDistinctMergeFunction to Int.
Browse files Browse the repository at this point in the history
  • Loading branch information
ueshin committed May 27, 2014
1 parent 9ed3719 commit fc3ac0f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ case class ApproxCountDistinctMergeFunction(
hyperLogLog.addAll(evaluatedExpr.asInstanceOf[HyperLogLog])
}

override def eval(input: Row): Any = hyperLogLog.cardinality()
override def eval(input: Row): Any = hyperLogLog.cardinality().toInt
}

case class SumFunction(expr: Expression, base: AggregateExpression) extends AggregateFunction {
Expand Down

0 comments on commit fc3ac0f

Please sign in to comment.