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

   Co-authored-by: chidayong <[email protected]>
   
   ## What is the purpose of the change
   Displaying Branches and Tags
   
   Branches and tags should be able to be queried via Iceberg Metadata Tables. 
For querying information about refs, syntax like the following could be used:
   
   ```sql
   SELECT * FROM prod.db.table.refs;
   ```
   
   The output would look like the following:
   
   Assume the following exist: branch1 at 100, branch2 at 200,
   historical_snapshot at 300
   
   ```sql
   SELECT * FROM prod.db.table.refs;
   ```
   
   Reference | Type | Snapshot ID | Max Ref Age MS | Min Snapshots To Keep | 
Max Snapshot Age
   -- | -- | -- | -- | -- | --
   branch1 | BRANCH | 100 | 9.223e+18 | 10 | 604800000
   branch2 | BRANCH | 200 | 9.223e+18 | 15 | 604800000
   historical_snapshot | TAG | 300 | 9.223e+18 | NULL | NULL
   
   


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