singhpk234 opened a new pull request, #5063:
URL: https://github.com/apache/iceberg/pull/5063

   This PR aims to expose MetadataLog as a metadata table which will be 
beneficial, for us to figure out what the metadata.json path this table points 
to.
   
   This supersedes the PR
   - https://github.com/apache/iceberg/pull/5006
   
   where we were exposing the current metadata location via `DESC TABLE 
EXTENDED`. 
   
   ```
   > SELECT * from {tableName}.metadata_log;
   
+----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+-------------------+
   |timestamp_millis|file                                                       
                                                                                
          |latest_snapshot_id |
   
+----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+-------------------+
   
|1655377766754000|file:/var/folders/9h/w6r5pljd597gy_plht_4llzs63hv0p/T/hive3851930027822894158/table/metadata/00000-6f7558bf-1c8a-412f-95e7-8ff3e3c8a0e4.metadata.json|null
               |
   
|1655377767128000|file:/var/folders/9h/w6r5pljd597gy_plht_4llzs63hv0p/T/hive3851930027822894158/table/metadata/00001-df8fa39c-9197-4a38-a114-b139f4b057cc.metadata.json|5761946951931974411|
   
|1655377767509000|file:/var/folders/9h/w6r5pljd597gy_plht_4llzs63hv0p/T/hive3851930027822894158/table/metadata/00002-3b9bcae0-7af0-45be-8005-5903ab23250f.metadata.json|735752075651617950
 |
   
+----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+-------------------+
   
   > SELECT * from {tableName}.snapshots
   
+-----------------------+-------------------+-------------------+---------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
   |committed_at           |snapshot_id        |parent_id          
|operation|manifest_list                                                        
                                                                                
            |summary                                                            
                                                                                
                                                                                
                                                            |
   
+-----------------------+-------------------+-------------------+---------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
   |2022-06-16 16:39:27.128|5761946951931974411|null               |append   
|file:/var/folders/9h/w6r5pljd597gy_plht_4llzs63hv0p/T/hive3851930027822894158/table/metadata/snap-5761946951931974411-1-2213f6d6-4d4d-4af9-96c8-ce8dbccb5dec.avro|{spark.app.id
 -> local-1655377754883, added-data-files -> 1, added-records -> 2, 
added-files-size -> 717, changed-partition-count -> 1, total-records -> 2, 
total-files-size -> 717, total-data-files -> 1, total-delete-files -> 0, 
total-position-deletes -> 0, total-equality-deletes -> 0} |
   |2022-06-16 16:39:27.509|735752075651617950 |5761946951931974411|append   
|file:/var/folders/9h/w6r5pljd597gy_plht_4llzs63hv0p/T/hive3851930027822894158/table/metadata/snap-735752075651617950-1-bd6f9ec2-6fb1-4f56-bb90-59d1707f2594.avro
 |{spark.app.id -> local-1655377754883, added-data-files -> 1, added-records -> 
2, added-files-size -> 717, changed-partition-count -> 1, total-records -> 4, 
total-files-size -> 1434, total-data-files -> 2, total-delete-files -> 0, 
total-position-deletes -> 0, total-equality-deletes -> 0}|
   
+-----------------------+-------------------+-------------------+---------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
   
   ```
   
   cc @rdblue @jackye1995 @rajarshisarkar @amogh-jahagirdar 


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