Fokko commented on issue #5591:
URL: https://github.com/apache/iceberg/issues/5591#issuecomment-1222309854

   It looks like the `current_schema_id` is not being updated when rolling back 
to an earlier snapshot:
   ```
   ➜  iceberg git:(master) ✗ pyiceberg describe test.test
   Table format version  1                                                      
                                                                                
                                                                                
         
   Metadata location     
s3://tabular-wh-us-west-2-dev/8bcb0838-50fc-472d-9ddb-8feb89ef5f1e/03b32560-7561-4f96-992b-01ef730946f5/metadata/00003-8b6eeb0f-76fc-435f-a25f-12db7baf62ff.gz.metadata.json
                                                    
   Table UUID            43fe073e-9360-4f4e-8ee7-d22d4969f9d1                   
                                                                                
                                                                                
         
   Last Updated          1661154486212                                          
                                                                                
                                                                                
         
   Partition spec        []                                                     
                                                                                
                                                                                
         
   Sort order            []                                                     
                                                                                
                                                                                
         
   Current schema        Schema, id=1                                           
                                                                                
                                                                                
         
                         ├── 1: c1: optional int                                
                                                                                
                                                                                
         
                         └── 2: c2: optional int                                
                                                                                
                                                                                
         
   Current snapshot      id=5161623784319151399, schema_id=0                    
                                                                                
                                                                                
         
   Snapshots             Snapshots                                              
                                                                                
                                                                                
         
                         ├── Snapshot 5161623784319151399, schema 0:            
                                                                                
                                                                                
         
                         │   
s3://tabular-wh-us-west-2-dev/8bcb0838-50fc-472d-9ddb-8feb89ef5f1e/03b32560-7561-4f96-992b-01ef730946f5/metadata/snap-5161623784319151399-1-cde4c05b-670c-47dd-8860-bcd6f07756f9.avro
                                       
                         └── Snapshot 2279922865032537001, schema 1:            
                                                                                
                                                                                
         
                             
s3://tabular-wh-us-west-2-dev/8bcb0838-50fc-472d-9ddb-8feb89ef5f1e/03b32560-7561-4f96-992b-01ef730946f5/metadata/snap-2279922865032537001-1-58b2d439-1420-49c2-bf06-228c77f1ebd0.avro
                                       
   Properties            write.delete.parquet.compression-codec  zstd           
                                                                                
                                                                                
         
                         write.metadata.compression-codec        gzip           
                                                                                
                                                                                
         
                         write.summary.partition-limit           100            
                                                                                
                                                                                
         
                         write.parquet.compression-codec         zstd  
   ```


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