alamb commented on code in PR #4278:
URL: https://github.com/apache/arrow-datafusion/pull/4278#discussion_r1026317548


##########
datafusion/core/src/physical_plan/file_format/parquet.rs:
##########
@@ -1526,6 +1524,36 @@ mod tests {
         );
     }
 
+    #[tokio::test]
+    async fn parquet_exec_display() {
+        let c1: ArrayRef = Arc::new(StringArray::from(vec![
+            Some("Foo"),
+            None,
+            Some("bar"),
+            Some("bar"),
+            Some("bar"),
+            Some("bar"),
+            Some("zzz"),
+        ]));
+
+        // batch1: c1(string)
+        let batch1 = create_batch(vec![("c1", c1.clone())]);
+
+        // on
+        let filter = col("c1").not_eq(lit("bar"));
+
+        let rt = round_trip(vec![batch1], None, None, Some(filter), true, 
false).await;
+
+        // convert to explain plan form
+        let display = 
displayable(rt.parquet_exec.as_ref()).indent().to_string();
+
+        assert_contains!(
+            &display,
+            "pruning_predicate=c1_min@0 != bar OR bar != c1_max@1"

Review Comment:
   Previously this was "predicate=c1_min@0 != bar OR bar != c1_max@1"



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

Reply via email to