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. It
doesn't modify by reference.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: [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]