ludlows commented on code in PR #6760:
URL: https://github.com/apache/iceberg/pull/6760#discussion_r1138040313


##########
spark/v3.3/spark/src/main/java/org/apache/iceberg/spark/procedures/RewriteDataFilesProcedure.java:
##########
@@ -117,27 +119,29 @@ public InternalRow[] call(InternalRow args) {
           }
 
           String where = args.isNullAt(4) ? null : args.getString(4);
-
-          action = checkAndApplyFilter(action, where, quotedFullIdentifier);
+          if (where != null) {
+            Expression icebergExpression = filter(where, quotedFullIdentifier);
+            action = action.filter(icebergExpression);
+          }
 
           RewriteDataFiles.Result result = action.execute();
-

Review Comment:
   yes. you are right. let me change my code.



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