wForget commented on code in PR #9850:
URL: https://github.com/apache/incubator-gluten/pull/9850#discussion_r2128797057


##########
gluten-ut/spark35/src/test/scala/org/apache/spark/sql/GlutenInjectRuntimeFilterSuite.scala:
##########
@@ -16,6 +16,27 @@
  */
 package org.apache.spark.sql
 
-class GlutenInjectRuntimeFilterSuite
-  extends InjectRuntimeFilterSuite
-  with GlutenSQLTestsBaseTrait {}
+import org.apache.spark.sql.internal.SQLConf
+
+class GlutenInjectRuntimeFilterSuite extends InjectRuntimeFilterSuite with 
GlutenSQLTestsBaseTrait {
+
+  test("bloom filter applied to partition filter") {
+    withSQLConf(
+      SQLConf.RUNTIME_BLOOM_FILTER_APPLICATION_SIDE_SCAN_SIZE_THRESHOLD.key -> 
"3000",
+      SQLConf.DYNAMIC_PARTITION_PRUNING_ENABLED.key -> "false",
+      "spark.gluten.sql.native.bloomFilter" -> "false",
+      SQLConf.AUTO_BROADCASTJOIN_THRESHOLD.key -> "2000"
+    ) {
+      val query = "select * from bf5part join bf2 on bf5part.f5 = bf2.c2 where 
bf2.a2 = 67"
+      val df = sql(query)
+      df.collect()
+      val plan = df.queryExecution.executedPlan.toString()
+      logWarning(s"GlutenInjectRuntimeFilterSuite Plan:")
+      plan.split("\n").foreach(logWarning(_))

Review Comment:
   This test case fails on the CH backend. It is only used to print the 
execution plan on CH backend, and I will remove it later. 
https://opencicd.kyligence.com/job/gluten/job/gluten-ci-arm/293/console
   
   
![image](https://github.com/user-attachments/assets/ed819adb-1928-4e67-a1ad-885a1de62581)
   



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