mbutrovich commented on code in PR #5107:
URL: https://github.com/apache/datafusion-comet/pull/5107#discussion_r3684730407


##########
native/core/src/execution/jni_api.rs:
##########
@@ -590,11 +590,22 @@ fn prepare_datafusion_session_context(
     // Translate the Comet-namespaced row-level pushdown flag into the 
equivalent
     // DataFusion session options. `pushdown_filters` enables the parquet 
reader's
     // RowFilter evaluation during decode (late materialization); 
`reorder_filters`
-    // is only meaningful when pushdown_filters is on, so they move together.
+    // is only meaningful when pushdown_filters is on, so they move together. 
Skip a
+    // key the `spark.comet.datafusion.*` testing escape hatch above already 
set
+    // explicitly, so an explicit override isn't silently forced back to 
`true`.
     if spark_config.get_bool(COMET_PARQUET_ROW_FILTER_PUSHDOWN_ENABLED) {
-        session_config = session_config
-            .set_str("datafusion.execution.parquet.pushdown_filters", "true")
-            .set_str("datafusion.execution.parquet.reorder_filters", "true");
+        const PUSHDOWN_FILTERS_KEY: &str =
+            "spark.comet.datafusion.execution.parquet.pushdown_filters";
+        const REORDER_FILTERS_KEY: &str =
+            "spark.comet.datafusion.execution.parquet.reorder_filters";
+        if !spark_config.contains_key(PUSHDOWN_FILTERS_KEY) {

Review Comment:
   I considered changing the ordering here but was afraid of the blast radius a 
day before cutting the 1.0 branch.



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