ahshahid commented on code in PR #16570:
URL: https://github.com/apache/iceberg/pull/16570#discussion_r3337799014


##########
spark/v4.1/spark/src/test/java/org/apache/iceberg/spark/sql/TestFilterPushDown.java:
##########
@@ -674,9 +683,14 @@ private void checkFilters(
       assertThat(planAsString).as("Should be no post scan 
filter").doesNotContain("Filter (");
     }
 
-    assertThat(planAsString)
-        .as("Pushed filters must match")
-        .contains(", filters=" + icebergFilters + ",");
+    int startIndex = planAsString.indexOf("filters=");
+    int endIndex = planAsString.indexOf("runtimeFilters");
+    String filterStringFromPlan = planAsString.substring(startIndex, endIndex);
+    Arrays.stream(icebergFilters)

Review Comment:
   tried to  address the behaviour by adding check for empty filter push down.. 
added test to validate the same..Though  I suppose the case of user explicitly 
passing empty string array of length > 0 , can still by pass the check, but not 
sure if its worth handling.



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