dcoliversun commented on code in PR #9349:
URL: https://github.com/apache/incubator-gluten/pull/9349#discussion_r2048123643
##########
backends-velox/src/test/scala/org/apache/gluten/execution/ScalarFunctionsValidateSuite.scala:
##########
@@ -196,6 +196,27 @@ abstract class ScalarFunctionsValidateSuite extends
FunctionsValidateSuite {
}
}
+ testWithMinSparkVersion("Test array_compact function", "3.4") {
+ withTempPath {
+ path =>
+ Seq[Array[String]](
+ Array("a", "b"),
+ Array(),
+ Array("a", "b", null.asInstanceOf[String]),
+ Array(null.asInstanceOf[String])
+ )
+ .toDF("arr")
+ .write
+ .parquet(path.getCanonicalPath)
+
+
spark.read.parquet(path.getCanonicalPath).createOrReplaceTempView("tbl")
+
+ runQueryAndCompare("select arr, array_compact(arr, txt) from tbl") {
Review Comment:
```suggestion
runQueryAndCompare("select arr, array_compact(arr) from tbl") {
```
--
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]