kevinjqliu commented on code in PR #16303:
URL: https://github.com/apache/iceberg/pull/16303#discussion_r3238387587


##########
spark/v3.4/spark/src/main/java/org/apache/iceberg/spark/source/SparkCopyOnWriteScan.java:
##########
@@ -118,26 +117,11 @@ public NamedReference[] filterAttributes() {
   }
 
   @Override
-  public void filter(Filter[] filters) {
-    Preconditions.checkState(
-        Objects.equals(snapshotId(), currentSnapshotId()),
-        "Runtime file filtering is not possible: the table has been 
concurrently modified. "
-            + "Row-level operation scan snapshot ID: %s, current table 
snapshot ID: %s. "
-            + "If an external process modifies the table, enable table caching 
in the catalog. "
-            + "If multiple threads modify the table, use independent Spark 
sessions in each thread.",
-        snapshotId(),
-        currentSnapshotId());
-

Review Comment:
   as @huaxingao points out offline, spark 4.1 does not currently have this 
guard
   
https://github.com/apache/iceberg/blame/e5e2e8b610af408ea33613d2739ccf39428cbe2a/spark/v4.1/spark/src/main/java/org/apache/iceberg/spark/source/SparkCopyOnWriteScan.java#L95-L96



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