Skip to content

Commit e7a2083

Browse files
cloud-fanasl3
authored andcommitted
[SPARK-52551][SQL][FOLLOW-UP] Enable ANSI mode in PushablePredicateSuite
### What changes were proposed in this pull request? This is a followup of apache#51247 to fix tests in the non ANSI build ### Why are the changes needed? fix test ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? N/A ### Was this patch authored or co-authored using generative AI tooling? no Closes apache#51330 Closes apache#51329 from cloud-fan/follow. Authored-by: Wenchen Fan <[email protected]> Signed-off-by: Hyukjin Kwon <[email protected]>
1 parent f923475 commit e7a2083

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sql/core/src/test/scala/org/apache/spark/sql/connector/PushablePredicateSuite.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
package org.apache.spark.sql.connector
1919

20+
import org.apache.spark.SparkConf
2021
import org.apache.spark.sql.QueryTest
2122
import org.apache.spark.sql.catalyst.expressions.{Cast, Literal}
2223
import org.apache.spark.sql.connector.expressions.filter.{AlwaysTrue, Predicate => V2Predicate}
@@ -27,6 +28,8 @@ import org.apache.spark.sql.types.BooleanType
2728

2829
class PushablePredicateSuite extends QueryTest with SharedSparkSession {
2930

31+
override def sparkConf: SparkConf = super.sparkConf.set(SQLConf.ANSI_ENABLED, true)
32+
3033
test("simple boolean expression should always return v2 Predicate") {
3134
Seq(true, false).foreach { createV2Predicate =>
3235
Seq(true, false).foreach { noAssert =>

0 commit comments

Comments
 (0)