yihua opened a new pull request, #20913:
URL: https://github.com/apache/hudi/pull/20913

   ### Describe the issue this Pull Request addresses
   
   issue: #16073, #20175
   
   The pluggable table format work (RFC-93, RFC-114 in #20181) is under review 
as many separate pull requests. Until they land, this draft combines them on 
current master so the feature can be built and tried from one branch, together 
with the matching Apache XTable plugin branch (apache/incubator-xtable#1055). 
It is not meant to be merged; it will be closed once the separate pull requests 
are in.
   
   ### Summary and Changelog
   
   One commit with the combined changes. Before the merge with current master, 
this code was tested end to end on Spark 3.5 against a catalog, with table 
services, through the plugin; the end-to-end run is being repeated on this 
branch.
   
   - Merge-on-read updates written as positional deletes plus inserts 
(`hoodie.write.updates.as.deletes.and.inserts`), with record positions from 
every index, compaction and rollback hooks for the table format, and table 
format settings kept in the table config (#20167, #20885, #20877).
   - Format meta columns that a table format declares and that every rewrite 
carries over (#20883).
   - Spark SQL UPDATE, DELETE and MERGE INTO fixes found by comparing results 
with the external format: MERGE cardinality, clause and condition handling, 
nested assignments, store assignment policy, moving a record whose partition 
changes, keyless merge-on-read DML, duplicate keys on insert, TIMESTAMP 
partition fractions (#20815, #20820, #20821, #20822, #20832, #20835, #20840, 
#20843, #20844, #20846, #20854, #20855, #20857, #20858, #20860, #20886, #20888, 
#20890, #20893, #20895, #20897, #20899).
   - The metadata table payload fix (#20813), the three-level Parquet list 
layout for non-native formats (#20879) and the embedded timeline server port 
check (#20881).
   
   Some of the pull requests above have newer review changes than this branch 
(for example, limiting the duplicate-key, cardinality and store assignment 
checks to non-native formats); they are being folded in and will follow as new 
commits.
   
   Limitations a user will hit:
   - Concurrent writers outside Hudi on the same table are not supported (never 
supported); Hudi must be the only writer.
   - Restore is refused, and schema-on-read evolution is not supported under a 
non-native format (never supported).
   - In this branch, inserts of duplicate keys fail by default and the MERGE 
cardinality check and store assignment policy apply to native tables too 
(**regression** for native tables until the review changes above are folded in).
   
   ### Impact
   
   New write config `hoodie.write.updates.as.deletes.and.inserts` and table 
format hooks; Spark SQL DML behavior changes as listed in the separate pull 
requests.
   
   ### Risk Level
   
   high: it combines many behavior changes. It is a build-and-try branch, not 
for merging. Verified with the tests of each separate pull request, the parity 
suites run through the table format plugin, and an end-to-end run on Spark 3.5 
with a catalog (copy-on-write and merge-on-read, insert through compaction, 
clustering, clean, archival and rollback, all reads matching Hudi after every 
step).
   
   ### Documentation Update
   
   The table format pages on the website are updated separately.
   
   ### Contributor's checklist
   
   - [x] Read through [contributor's 
guide](https://hudi.apache.org/contribute/how-to-contribute)
   - [x] Enough context is provided in the sections above
   - [x] Adequate tests were added if applicable
   


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