yangshangqing95 commented on code in PR #17440:
URL: https://github.com/apache/iceberg/pull/17440#discussion_r3693533571


##########
core/src/main/java/org/apache/iceberg/BaseEntriesTable.java:
##########
@@ -255,15 +254,31 @@ private <T> boolean fileContent(BoundReference<T> ref) {
         return ref.fieldId() == DataFile.CONTENT.fieldId();
       }
 
-      private boolean contentMatch(Integer fileContentId) {
-        if (FileContent.DATA.id() == fileContentId) {
-          return ManifestContent.DATA.id() == manifestContentId;
-        } else if (FileContent.EQUALITY_DELETES.id() == fileContentId
-            || FileContent.POSITION_DELETES.id() == fileContentId) {
-          return ManifestContent.DELETES.id() == manifestContentId;
-        } else {
-          return false;
+      private boolean mayContainFileContent(int fileContentId) {
+        if (ManifestContent.DATA == manifestContent) {
+          return FileContent.DATA.id() == fileContentId;
+        } else if (ManifestContent.DELETES == manifestContent) {
+          return FileContent.POSITION_DELETES.id() == fileContentId
+              || FileContent.EQUALITY_DELETES.id() == fileContentId;
+        }
+
+        // Be conservative for an unknown manifest content.

Review Comment:
   done



-- 
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]

Reply via email to