philo-he commented on code in PR #12199:
URL: https://github.com/apache/gluten/pull/12199#discussion_r3331491496


##########
backends-velox/src/test/scala/org/apache/gluten/functions/MathFunctionsValidateSuite.scala:
##########
@@ -66,7 +66,15 @@ class MathFunctionsValidateSuiteAnsiOn extends 
FunctionsValidateSuite {
   }
 }
 
-abstract class MathFunctionsValidateSuite extends FunctionsValidateSuite {
+class MathFunctionsValidateSuite extends FunctionsValidateSuite {
+
+  // Disable ANSI mode: Spark 4 enables it by default, which wraps math 
functions
+  // in ANSI check nodes and prevents ProjectExecTransformer from being the 
top-level
+  // plan node. ANSI-specific behaviour is tested in 
MathFunctionsValidateSuiteAnsiOn.
+  override protected def sparkConf: SparkConf = {
+    super.sparkConf
+      .set(SQLConf.ANSI_ENABLED.key, "false")

Review Comment:
   Thanks for the PR. Could you verify whether the following environment 
variable setting is sufficient to make ANSI default to false?
   
   
https://github.com/apache/gluten/blob/ce6e16fe8f37d97bdc1296eef222a5b97af8bd75/.github/workflows/velox_backend_x86.yml#L51



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