Skip to content

Commit bd08239

Browse files
committed
WIP
1 parent 213ada8 commit bd08239

File tree

1 file changed

+4
-3
lines changed
  • sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions

1 file changed

+4
-3
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/aggregates.scala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ case class CollectHashSet(expressions: Seq[Expression]) extends AggregateExpress
194194
case 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)
466467
case 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

Comments
 (0)