aokolnychyi commented on code in PR #9050:
URL: https://github.com/apache/iceberg/pull/9050#discussion_r1408616206
##########
spark/v3.4/spark/src/main/java/org/apache/iceberg/spark/source/SparkWrite.java:
##########
@@ -390,7 +390,7 @@ private Expression conflictDetectionFilter() {
filter = Expressions.and(filter, expr);
}
- return filter;
+ return SERIALIZABLE == isolationLevel ? Expressions.alwaysTrue() :
filter;
Review Comment:
The proper way to ensure the MERGE statement above is serializable is to
perform the following checks:
- Validate no new data matching `ref(name="id") == 1005` is added to the
target table.
- Validate no new data matching `class = 1` is added to the source table.
We have the first part. I wonder if there is a workaround to validate the
second part, assuming it is also an Iceberg table, without a proper transaction
API in Spark. I'll need to think whether we can inject a custom rule to catch
this.
--
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]