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

   ## Which issue does this PR close?
   
   Implements the REFS subtask of #823. Related prior proposal: #1489.
   
   ## What changes are included in this PR?
   
   Expose snapshot references through `table.inspect().refs()` and 
`MetadataTableType::Refs`. The scan returns the six columns defined by Iceberg 
Java, with uppercase `BRANCH` and `TAG` types and nullable retention settings. 
It reads the loaded table metadata and does not access manifests or data files.
   
   The constructor stays crate-private. Downstream DataFusion providers still 
need to handle the new metadata-table variant before they can expose `$refs` 
through SQL.
   
   ## Are these changes tested?
   
   Tests compare complete Arrow batches, including field IDs and nullability, 
for main, named branches, tags, explicit retention values, and unset settings. 
A valid empty-table fixture returns a correctly typed empty batch. The fixtures 
point at absent metadata files, so these scans also demonstrate that no file 
reads are required.
   
   The full Iceberg unit suite passes locally. The generated public API 
snapshot includes only the intended inspection API and enum variant.
   
   ## AI Disclosure
   
   Implemented with OpenAI Codex assistance, including tests and independent 
code and test reviews. Human review should focus on Java schema compatibility 
and the new public enum variant, which requires downstream exhaustive matches 
to add a `Refs` case. DataFusion SQL and distributed execution are outside this 
PR and have not been validated here.
   


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