amogh-jahagirdar commented on code in PR #9102: URL: https://github.com/apache/iceberg/pull/9102#discussion_r1398015111
########## spark/v3.5/spark/src/main/java/org/apache/iceberg/spark/source/SparkTable.java: ########## @@ -327,12 +331,9 @@ private boolean canDeleteUsingMetadata(Expression deleteExpr) { .filter(deleteExpr) .caseSensitive(caseSensitive) .includeColumnStats() + .useRef(branch()) .ignoreResiduals(); - if (branch != null) { - scan.useRef(branch); - } Review Comment: So this was the main issue, the Scan APIs return new Scan objects. Setting the ref here isn't sufficient unless the actual response gets used..We either need to do scan = scan.useRef and use that or what I did was just inline it at the time of building -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org