JustinBinber opened a new pull request, #11496:
URL: https://github.com/apache/paimon/pull/11496

   Fixes #11323
   
   ### Follow-up to #11322
   
   @JingsongLi, thank you for rerunning the 17 MERGE tests on Spark 3.5.9 and 
4.1.4 and for reproducing the same-ID rollback case in [your 
review](https://github.com/apache/paimon/pull/11322#pullrequestreview-6017670578).
 This resubmission carries forward the fix discussed there and is based on a 
fresh `master` snapshot.
   
   - In the [rollback 
reproducer](https://github.com/apache/paimon/pull/11322#discussion_r4662694379),
 a rollback and new commit reused a snapshot ID between the shared join and the 
INSERT reread. Both reads now use the original resolved Snapshot and its 
manifest references. Missing original files fail the MERGE before target 
commit. Sources configured to skip missing or corrupt files use the existing 
wide shared path. The [previous fix and regression 
notes](https://github.com/apache/paimon/pull/11322#discussion_r4667057157) have 
the full details.
   - The JDK setup retry is tracked separately in #11495. This PR contains the 
MERGE implementation, tests, and option documentation.
   
   ### Behavior and benchmark
   
   The default-off option keeps INSERT-only wide columns out of the shared join 
cache. Eligible Paimon append sources are pinned, and INSERT rereads the source 
with null-safe key membership. The reread still scans the source. Unsupported 
sources and plans fall back to the existing shared path.
   
   On the fixed wide-field workload with about 90% INSERT, existing sharing 
versus narrowing used **316.79 vs 10.77 MB** of shuffle and **312.20 vs 18.78 
MB** peak disk cache. Full SQL took **76.95 vs 72.63 s**, with sampled RSS 
rising from **3.78 to 4.80 GiB**. These are one-sample screening measurements 
per configuration on a single host, from the earlier feature revision. The 
[public reproduction 
bundle](https://github.com/JustinBinber/paimon/tree/0c5bd5e93b74dad1160813daa4f45d86c2db8756/benchmarks/merge-narrow-source)
 includes SQL, input generation, results, and the all-INSERT and no-wide-field 
controls.
   
   ### Validation
   
   [CI passed on the prior fixed 
revision](https://github.com/apache/paimon/actions/runs/45422008066). The 
regression suite includes rollback with a reused ID and schema and fallback for 
sources that skip unavailable files. This revision has its own CI run.


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