We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ed3719 commit fc3ac0fCopy full SHA for fc3ac0f
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/aggregates.scala
@@ -340,7 +340,7 @@ case class ApproxCountDistinctMergeFunction(
340
hyperLogLog.addAll(evaluatedExpr.asInstanceOf[HyperLogLog])
341
}
342
343
- override def eval(input: Row): Any = hyperLogLog.cardinality()
+ override def eval(input: Row): Any = hyperLogLog.cardinality().toInt
344
345
346
case class SumFunction(expr: Expression, base: AggregateExpression) extends AggregateFunction {
0 commit comments