comphead commented on code in PR #2481:
URL: https://github.com/apache/datafusion-comet/pull/2481#discussion_r2392580950


##########
spark/src/test/scala/org/apache/comet/CometArrayExpressionSuite.scala:
##########
@@ -163,21 +175,26 @@ class CometArrayExpressionSuite extends CometTestBase 
with AdaptiveSparkPlanHelp
     withSQLConf(CometConf.COMET_EXPR_ALLOW_INCOMPATIBLE.key -> "true") {
       Seq(true, false).foreach { dictionaryEnabled =>
         withTempDir { dir =>
-          val path = new Path(dir.toURI.toString, "test.parquet")
-          makeParquetFileAllPrimitiveTypes(path, dictionaryEnabled = 
dictionaryEnabled, 10000)
-          spark.read.parquet(path.toString).createOrReplaceTempView("t1");
-          checkSparkAnswerAndOperator(spark.sql("Select 
array_prepend(array(_1),false) from t1"))
-          checkSparkAnswerAndOperator(
-            spark.sql("SELECT array_prepend(array(_2, _3, _4), 4) FROM t1"))
-          checkSparkAnswerAndOperator(
-            spark.sql("SELECT array_prepend(array(_2, _3, _4), null) FROM 
t1"));
-          checkSparkAnswerAndOperator(
-            spark.sql("SELECT array_prepend(array(_6, _7), CAST(6.5 AS 
DOUBLE)) FROM t1"));
-          checkSparkAnswerAndOperator(
-            spark.sql("SELECT array_prepend(array(_8), 'test') FROM t1"));
-          checkSparkAnswerAndOperator(spark.sql("SELECT 
array_prepend(array(_19), _19) FROM t1"));
-          checkSparkAnswerAndOperator(
-            spark.sql("SELECT array_prepend((CASE WHEN _2 =_3 THEN array(_4) 
END), _4) FROM t1"));
+          withTempView("1") {
+            val path = new Path(dir.toURI.toString, "test.parquet")
+            makeParquetFileAllPrimitiveTypes(path, dictionaryEnabled = 
dictionaryEnabled, 10000)
+            spark.read.parquet(path.toString).createOrReplaceTempView("t1");

Review Comment:
   ```suggestion
   ```



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