JustinBinber commented on PR #11174: URL: https://github.com/apache/paimon/pull/11174#issuecomment-7134709263
In reply to [the single native MERGE baseline](https://github.com/apache/paimon/pull/11174#issuecomment-7004053118). Thanks for the single-statement baseline. We benchmarked your D-marker + INSERT form, ordinary UPDATE + INSERT MERGE, and the proposed CALL on the same fixed batch and 128-column Data Evolution target. The target had 4,096 rows in 64 files, with 32 matched and 8 new source rows. We enabled AQE and ran each arm three times in rotating order, with a fresh target copy and the same warm-cache policy. | SQL | Mean end-to-end time | Target Parquet bytes returned | | --- | ---: | ---: | | MERGE with full-column UPDATE + INSERT | 18.48 s | 51.32 MB | | Single native MERGE with DELETE + INSERT | 17.56 s | 9.22 MB | | CALL replace_by_keys | 12.34 s | 5.00 MB | All executions passed full-row multiset and single-snapshot checks. The native DELETE + INSERT and CALL assign fresh RowIDs to replacements, while UPDATE preserves the matched RowIDs. The native statement provides atomic replacement for this workload. The measured benefit of CALL here is about 30% lower end-to-end time than that native baseline. The Parquet metric counts bytes returned by FileIO, including repeated reads. This is one fixed workload and does not establish the benefit across batch sizes. Would this result and the source-snapshot binding be enough to justify keeping the public procedure, or would you prefer documenting the native MERGE pattern? -- 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]
