pudidic opened a new issue, #7509:
URL: https://github.com/apache/iceberg/issues/7509

   ### Feature Request / Improvement
   
   I'm designing a service that transforms absolute paths in metadata layers. 
It needs to replace snapshot objects with new absolute paths. I tried to expand 
TableMetadata. However, TableMetadata has only package-private constructor. A 
protected TableMetadata() constructor is required for the inheritance.
   
   Current:
   ```
   public class TableMetadata {
   ...
     @SuppressWarnings("checkstyle:CyclomaticComplexity")
     TableMetadata(
         String metadataFileLocation,
         int formatVersion,
         String uuid,
   ...
   ```
   
   Suggested:
   ```
   public class TableMetadata {
   ...
     /** Empty constructor for inheritance */
     protected TableMetadata() {
       this.metadataFileLocation = null;
       this.formatVersion = -1;
       this.uuid = null;
       this.location = null;
       this.lastSequenceNumber = -1;
       this.lastUpdatedMillis = -1;
       this.lastColumnId = -1;
       this.currentSchemaId = -1;
       this.schemas = null;
       this.defaultSpecId = -1;
       this.specs = null;
       this.lastAssignedPartitionId = -1;
       this.defaultSortOrderId = -1;
       this.sortOrders = null;
       this.properties = null;
       this.currentSnapshotId = -1;
       this.schemasById = null;
       this.specsById = null;
       this.sortOrdersById = null;
       this.snapshotLog = null;
       this.previousFiles = null;
       this.statisticsFiles = null;
       this.changes = null;
     }
   
     @SuppressWarnings("checkstyle:CyclomaticComplexity")
     TableMetadata(
         String metadataFileLocation,
         int formatVersion,
         String uuid,
   ...
   ```
   
   ### Query engine
   
   None


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