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

   <!--
   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 -->
   Linked issue: Part of #232
   
   `DataEvolutionWriter` was exposed as a lower-level writer and DataFusion DML 
created it directly, while `WriteBuilder` only covered write and commit 
construction. This made the table-level write API incomplete and kept UPDATE / 
MERGE INTO data-evolution paths outside the builder flow.
   
   This PR introduces `TableUpdate` as the table-level update API and wires 
data-evolution UPDATE / MERGE INTO through `WriteBuilder::new_update(...)`.
   
   <!-- 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 public `TableUpdate` as a thin wrapper around `DataEvolutionWriter`.
     - Add `WriteBuilder::new_update(update_columns)`.
     - Export `TableUpdate` from `paimon::table` and crate root.
     - Update DataFusion data-evolution UPDATE / MERGE INTO to create update 
writers through `WriteBuilder`.
     - Reuse one `WriteBuilder` for MERGE INTO update writer, insert writer, 
and commit.
   
   ### Tests
   
   <!-- List unit tests or integration cases to verify this change -->
   
     - `cargo fmt --all -- --check`
     - `cargo clippy -p paimon -p paimon-datafusion --all-targets --features 
fulltext,vortex -- -D warnings`
     - `cargo test -p paimon table::write_builder`
     - `cargo test -p paimon table::data_evolution_writer`
     - `cargo test -p paimon-datafusion --test update_tests`
     - `cargo test -p paimon-datafusion --test merge_into_tests`
   
   ### API and Format
   
   <!-- Does this change affect API or storage format -->
   
   Adds public `TableUpdate` and `WriteBuilder::new_update(...)`.
   
   ### 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