ajantha-bhat opened a new pull request, #4509:
URL: https://github.com/apache/iceberg/pull/4509

   what is null ?
   `TableMetadata.metadataFileLocation` is null
   
   Scenario:
   ```
   create branch1;
   create table1 on branch1;
   commit on table1 on branch1;
   
   create branch2 from branch1;
   commit on table1 on branch2;
   
   use branch1;
   load table1 in branch1;  -- this table as null `metadataFileLocation`
   ```
   
   Reason:
   `NessieTableOperation.refreshFromMetadataLocation()` calls 
`loadTableMetadata()` where `TableMetadata.buildFrom() ` creates an 
`TableMetadata` with null  `metadataFileLocation` (refer 
[here](https://github.com/apache/iceberg/blob/master/core/src/main/java/org/apache/iceberg/TableMetadata.java#L800))
   and Nessie didn't set the `metadataFileLocation`
   
   How basic scenarios are working?
   Nessie itself holds `metadataFileLocation` and uses for all the Nessie 
operations. But when Iceberg table in nessie catalog is used for iceberg 
specific functionality like read `.snapshots` table, Iceberg needs 
`metadataFileLocation` which was not filled. 


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