panbingkun commented on code in PR #48261:
URL: https://github.com/apache/spark/pull/48261#discussion_r1776449439


##########
sql/core/src/test/scala/org/apache/spark/sql/DataFrameFunctionsSuite.scala:
##########
@@ -1785,6 +1785,13 @@ class DataFrameFunctionsSuite extends QueryTest with 
SharedSparkSession {
       ),
       queryContext = Array(ExpectedContext("", "", 0, 32, "array_contains('a 
string', 'foo')"))
     )
+
+    val schema = StructType(Seq(
+      StructField("a", ArrayType(IntegerType, containsNull = true)),
+      StructField("b", IntegerType)))
+    val data = Seq(Row(Seq[Integer](1, 2, 3, null), null))
+    val df1 = spark.createDataFrame(spark.sparkContext.parallelize(data), 
schema)
+    checkAnswer(df1.select(array_contains(col("a"), col("b"))), Seq(Row(true)))

Review Comment:
   I'm not sure if this belongs to `break changes`, but I think it should be a 
correct correction.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to