Github user wzhfy commented on a diff in the pull request:
https://github.com/apache/spark/pull/19506#discussion_r146151411
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/aggregate/ApproxCountDistinctForIntervals.scala
---
@@ -239,4 +219,26 @@ case class ApproxCountDistinctForIntervals(
override def dataType: DataType = ArrayType(LongType)
override def prettyName: String = "approx_count_distinct_for_intervals"
+
+ override def serialize(obj: Array[Long]): Array[Byte] = {
+ val byteArray = new Array[Byte](obj.length * 8)
+ obj.indices.foreach { i =>
--- End diff --
Fixed. Thanks for the reminder!
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]