You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "aokolnychyi (via GitHub)" <gi...@apache.org> on 2024/11/05 20:45:43 UTC
Re: [PR] [WIP] Core: Prototype for DVs in V3 [iceberg]
aokolnychyi commented on code in PR #11302:
URL: https://github.com/apache/iceberg/pull/11302#discussion_r1829979110
##########
data/src/main/java/org/apache/iceberg/data/BaseDeleteLoader.java:
##########
@@ -146,6 +151,36 @@ private <T> Iterable<T> materialize(CloseableIterable<T> iterable) {
@Override
public PositionDeleteIndex loadPositionDeletes(
Iterable<DeleteFile> deleteFiles, CharSequence filePath) {
+ if (containsDVs(deleteFiles)) {
+ DeleteFile deleteFile = Iterables.getOnlyElement(deleteFiles);
Review Comment:
I am using `Iterables.getOnlyElement()`, which will complain if there is more than one.
--
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-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org