This is an automated email from the ASF dual-hosted git repository.

changchen pushed a commit to branch feature/ansi-ci-baseline
in repository https://gitbox.apache.org/repos/asf/gluten.git

commit 5a839f9ac934e5f85d42662ea704f0d0441ba1fa
Author: Chang chen <[email protected]>
AuthorDate: Fri Apr 10 07:41:48 2026 +0000

    [GLUTEN-10134][VL] Fix SPARK-33551 test: use explicit CAST to match Spark's 
original test
    
    Align the JOIN condition with Spark's original test by using
    `CAST(value AS INT) = b` instead of implicit `value = b`.
    The implicit string-to-int comparison causes different optimizer
    behavior under ANSI mode, leading to assertion failures.
    
    Co-Authored-By: Claude Opus 4 <[email protected]>
---
 .../sql/execution/adaptive/velox/VeloxAdaptiveQueryExecSuite.scala      | 2 +-
 .../sql/execution/adaptive/velox/VeloxAdaptiveQueryExecSuite.scala      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/gluten-ut/spark40/src/test/scala/org/apache/spark/sql/execution/adaptive/velox/VeloxAdaptiveQueryExecSuite.scala
 
b/gluten-ut/spark40/src/test/scala/org/apache/spark/sql/execution/adaptive/velox/VeloxAdaptiveQueryExecSuite.scala
index 67e9baed04..de5cdcd3d6 100644
--- 
a/gluten-ut/spark40/src/test/scala/org/apache/spark/sql/execution/adaptive/velox/VeloxAdaptiveQueryExecSuite.scala
+++ 
b/gluten-ut/spark40/src/test/scala/org/apache/spark/sql/execution/adaptive/velox/VeloxAdaptiveQueryExecSuite.scala
@@ -922,7 +922,7 @@ class VeloxAdaptiveQueryExecSuite extends 
AdaptiveQueryExecSuite with GlutenSQLT
                      |  SELECT * FROM testData WHERE key = 1
                      |)
                      |RIGHT OUTER JOIN testData2
-                     |ON value = b
+                     |ON CAST(value AS INT) = b
         """.stripMargin)
 
       withSQLConf(SQLConf.AUTO_BROADCASTJOIN_THRESHOLD.key -> "300") {
diff --git 
a/gluten-ut/spark41/src/test/scala/org/apache/spark/sql/execution/adaptive/velox/VeloxAdaptiveQueryExecSuite.scala
 
b/gluten-ut/spark41/src/test/scala/org/apache/spark/sql/execution/adaptive/velox/VeloxAdaptiveQueryExecSuite.scala
index 6ebefbe15a..65455078f7 100644
--- 
a/gluten-ut/spark41/src/test/scala/org/apache/spark/sql/execution/adaptive/velox/VeloxAdaptiveQueryExecSuite.scala
+++ 
b/gluten-ut/spark41/src/test/scala/org/apache/spark/sql/execution/adaptive/velox/VeloxAdaptiveQueryExecSuite.scala
@@ -926,7 +926,7 @@ class VeloxAdaptiveQueryExecSuite extends 
AdaptiveQueryExecSuite with GlutenSQLT
                      |  SELECT * FROM testData WHERE key = 1
                      |)
                      |RIGHT OUTER JOIN testData2
-                     |ON value = b
+                     |ON CAST(value AS INT) = b
         """.stripMargin)
 
       withSQLConf(SQLConf.AUTO_BROADCASTJOIN_THRESHOLD.key -> "300") {


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

Reply via email to