Github user larvaboy commented on a diff in the pull request:

    https://github.com/apache/spark/pull/737#discussion_r12574415
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/aggregates.scala
 ---
    @@ -166,10 +167,48 @@ case class CountDistinct(expressions: 
Seq[Expression]) extends AggregateExpressi
       override def references = expressions.flatMap(_.references).toSet
       override def nullable = false
       override def dataType = IntegerType
    -  override def toString = s"COUNT(DISTINCT ${expressions.mkString(",")}})"
    +  override def toString = s"COUNT(DISTINCT ${expressions.mkString(",")})"
       override def newInstance() = new CountDistinctFunction(expressions, this)
     }
     
    +case class ApproxCountDistinctPartition(child: Expression)
    +    extends AggregateExpression with trees.UnaryNode[Expression] {
    --- End diff --
    
    All the instances are fixed now.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to