Github user huaxingao commented on a diff in the pull request:
https://github.com/apache/spark/pull/21050#discussion_r183925443
--- Diff:
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/CollectionExpressionsSuite.scala
---
@@ -105,4 +105,18 @@ class CollectionExpressionsSuite extends SparkFunSuite
with ExpressionEvalHelper
checkEvaluation(ArrayContains(a3, Literal("")), null)
checkEvaluation(ArrayContains(a3, Literal.create(null, StringType)),
null)
}
+
+ test("Array Unique") {
+ val a0 = Literal.create(Seq(2, 1, 2, 3, 4, 4, 5),
ArrayType(IntegerType))
+ val a1 = Literal.create(Seq[Integer](), ArrayType(IntegerType))
--- End diff --
@HyukjinKwon Thanks for your comments. Will fix the problems. Sorry for the
late reply.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]