QuakeWang opened a new pull request, #454:
URL: https://github.com/apache/paimon-rust/pull/454

   <!--
   Thank you very much for contributing to Paimon Rust - we are happy that you 
want to help us improve it. To help the community review your contribution in 
the best possible way, please go through the checklist below, which will get 
the contribution into a shape in which it can be best reviewed.
   
   ## Contribution Checklist
   
     - Make sure that the pull request corresponds to a [GitHub 
issue](https://github.com/apache/paimon-rust/issues). Exceptions are made for 
typos in documentation or comments, which need no issue.
   
     - Fill out the template below to describe the changes contributed by the 
pull request. That will give reviewers the context they need to do the review.
   
     - Make sure that the change passes the automated tests, i.e., `cargo test` 
passes.
   
     - Each pull request should address only one issue, not mix up code from 
multiple issues.
   
   **(The sections below can be removed for hotfixes or typos)**
   -->
   
   ### Purpose
   
   <!-- Linking this pull request to the issue -->
   
   Rust already has BTree global index read support, scan integration, and 
row-id coverage semantics, but it did not have an entry point to build BTree 
global index files. This left the Rust read path unable to close the write/read 
lifecycle by itself.
   
   <!-- What is the purpose of the change -->
   
   ### Brief change log
   
   <!-- Please describe the changes made in this pull request and explain how 
they address the issue -->
   
     - Add a single-column BTree global index builder for data-evolution 
row-tracking append tables.
     - Plan index shards by contiguous global row-id ranges and reject missing 
`first_row_id`.
     - Write BTree index files under `{table}/index/` with Java-compatible 
BTree/index manifest metadata.
     - Add `Table::new_btree_global_index_build_builder()`.
     - Add `CALL sys.create_global_index(..., index_type => 'btree')` with 
unsupported handling for non-BTree types.
     - Add tests for shard planning, row-id gaps, missing row ids, overlap 
rejection, manifest metadata, SQL creation, and fast/full/detail scan behavior 
after appends.
   
   ### Tests
   
   <!-- List unit tests or integration cases to verify this change -->
   
     - `cargo fmt --all -- --check`
     - `cargo clippy --all-targets --workspace --features 
fulltext,vortex,mosaic -- -D warnings`
     - `cargo test -p paimon btree`
     - `cargo test -p paimon table::global_index_scanner::tests --lib`
     - `cargo test -p paimon table::table_commit::tests::test_global_index 
--lib`
     - `cargo test -p paimon-datafusion --test procedures`
   
   ### API and Format
   
   <!-- Does this change affect API or storage format -->
   Adds a minimal Rust API and SQL procedure for BTree global index creation. 
The generated files use Java-compatible BTree/index manifest formats.
   
   ### Documentation
   
   <!-- Does this change introduce a new feature or require documentation 
updates -->
   


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

Reply via email to