planga82 commented on a change in pull request #28351:
URL: https://github.com/apache/spark/pull/28351#discussion_r418439165
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/aggregate/collect.scala
##########
@@ -139,6 +148,32 @@ case class CollectSet(
def this(child: Expression) = this(child, 0, 0)
+ /*
+ * SPARK-31500
+ * Array[Byte](BinaryType) Scala equality don't works as expected
+ * so HashSet return duplicates, we have to change types to drop
+ * this duplicates and make collect_set work as expected for this
+ * data type
Review comment:
Ok, it's better to move to this line. I've tried to clarify the message
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]