@@ -194,7 +194,7 @@ case class CollectHashSet(expressions: Seq[Expression]) extends AggregateExpress
194194case class CollectHashSetFunction (
195195 @ transient expr : Seq [Expression ],
196196 @ transient base : AggregateExpression )
197- extends MergableAggregateFunction {
197+ extends AggregateFunction {
198198
199199 def this () = this (null , null ) // Required for serialization.
200200
@@ -203,13 +203,14 @@ case class CollectHashSetFunction(
203203 @ transient
204204 val distinctValue = new InterpretedProjection (expr)
205205
206+ /*
206207 override def merge(other: MergableAggregateFunction): MergableAggregateFunction = {
207208 val otherSetIterator = other.asInstanceOf[CountDistinctFunction].seen.iterator
208209 while(otherSetIterator.hasNext) {
209210 seen.add(otherSetIterator.next())
210211 }
211212 this
212- }
213+ }*/
213214
214215 override def update (input : Row ): Unit = {
215216 val evaluatedExpr = distinctValue(input)
@@ -466,7 +467,7 @@ case class SumDistinctFunction(expr: Expression, base: AggregateExpression)
466467case class CountDistinctFunction (
467468 @ transient expr : Seq [Expression ],
468469 @ transient base : AggregateExpression )
469- extends MergableAggregateFunction {
470+ extends AggregateFunction {
470471
471472 def this () = this (null , null ) // Required for serialization.
472473
0 commit comments