anoopj commented on code in PR #17541:
URL: https://github.com/apache/iceberg/pull/17541#discussion_r4106518573
##########
core/src/main/java/org/apache/iceberg/TrackedFileAdapters.java:
##########
@@ -46,6 +46,15 @@ static DeleteFile asDVDeleteFile(TrackedFile file,
Map<Integer, PartitionSpec> s
return new TrackedDVDeleteFile(file, resolveSpecId(file, specsById));
}
+ static DeleteFile asDVDeleteFile(DataFile dataFile) {
+ Preconditions.checkArgument(
+ dataFile instanceof TrackedDataFile,
+ "Cannot create DV delete file from DataFile: %s",
Review Comment:
I made this change. Note that I had to make `TrackedDataFile` package
private so that `FilePlanner` can do this - also needs a cast.
--
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]