slfan1989 opened a new pull request, #2463:
URL: https://github.com/apache/iceberg-rust/pull/2463

   ## Which issue does this PR close?
   
   - Closes #2462.
   
   ## What changes are included in this PR?
   
   This PR adds support for the `history` metadata table.
   
   Main changes:
   
   - Add `HistoryTable` under `crates/iceberg/src/inspect/`.
   - Add `MetadataTableType::History`.
   - Support parsing `"history"` as a metadata table type.
   - Expose `table.inspect().history()`.
   - Wire the history metadata table into the DataFusion metadata table 
provider.
   - Support querying the table through DataFusion using:
   
   ```sql
   SELECT * FROM my_table$history;
   ```
   
   The history metadata table exposes the following columns:
   
   
   Column | Description
   -- | --
   made_current_at | Timestamp when the snapshot was made current
   snapshot_id | Snapshot ID from the table snapshot log
   parent_id | Parent snapshot ID, if available
   is_current_ancestor | Whether the snapshot is an ancestor of the current 
snapshot
   
   
   ## Are these changes tested?
   
   Yes.
   
   This PR adds and updates tests for:
   
   - table.inspect().history().scan() schema and returned rows.
   - MetadataTableType::try_from("history").
   - DataFusion metadata table listing to include table$history.
   - DataFusion SQL query support for SELECT * FROM table$history.


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