szehon-ho commented on code in PR #4630:
URL: https://github.com/apache/iceberg/pull/4630#discussion_r858203424
##########
spark/v3.2/spark/src/main/java/org/apache/iceberg/spark/source/SparkTable.java:
##########
@@ -295,7 +295,7 @@ public void deleteWhere(Filter[] filters) {
.deleteFromRowFilter(deleteExpr)
.commit();
} catch (ValidationException e) {
- throw new IllegalArgumentException("Failed to cleanly delete data files
matching: " + deleteExpr, e);
+ throw new ValidationException(e, "Failed to cleanly delete data files
matching: %s", deleteExpr);
Review Comment:
Yea that's right, I think we can even remove it from method's throw clause,
as it's a RuntimeException.
--
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]