huleilei commented on pull request #4399:
URL: https://github.com/apache/iceberg/pull/4399#issuecomment-1084214073


   @kbendick Is it necessary to change `MANIFEST_LIST_SCHEMA` to ensure that 
the length of `MANIFEST_LIST_SCHEMA` 
    and the "`get ()`" method of metadata is consistent:
   
   ```
     static final Schema MANIFEST_LIST_SCHEMA = new Schema(
         ManifestFile.PATH,
         ManifestFile.LENGTH,
         ManifestFile.SPEC_ID,
         ManifestFile.MANIFEST_CONTENT.asRequired(),
         ManifestFile.SEQUENCE_NUMBER.asRequired(),
         ManifestFile.MIN_SEQUENCE_NUMBER.asRequired(),
         ManifestFile.SNAPSHOT_ID.asRequired(),
         ManifestFile.ADDED_FILES_COUNT.asRequired(),
         ManifestFile.EXISTING_FILES_COUNT.asRequired(),
         ManifestFile.DELETED_FILES_COUNT.asRequired(),
         ManifestFile.ADDED_ROWS_COUNT.asRequired(),
         ManifestFile.EXISTING_ROWS_COUNT.asRequired(),
         ManifestFile.DELETED_ROWS_COUNT.asRequired(),
         ManifestFile.PARTITION_SUMMARIES,
         ManifestFile.WRITER_ID.asRequired(),
         ManifestFile.KEY_METADATA
     );
   ```
    The length of `MANIFEST_LIST_SCHEMA` is 14. 
   


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