deniskuzZ commented on code in PR #5254:
URL: https://github.com/apache/hive/pull/5254#discussion_r1671805109
##########
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/mapreduce/IcebergMergeRecordReader.java:
##########
@@ -87,6 +97,12 @@ private CloseableIterable<T> openGeneric(ContentFile
contentFile, Schema readSch
getTable().io().newInputFile(dataFile.path().toString()),
dataFile.keyMetadata()));
schema = readSchema;
+ } else if (contentFile instanceof DeleteFile) {
+ DeleteFile deleteFile = (DeleteFile) contentFile;
Review Comment:
can't we cast to `ContentFile` file and reuse bigger part, just amend the
schema?
--
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]