Repository navigation
Conversation
A REST error can contain conflict text after the snapshot is published. Matching the formatted error chain could execute an UPDATE twice. Classify only top-level Paimon conflicts before retrying DML. Signed-off-by: QuakeWang <wangfuzheng0814@foxmail.com>
JeonDaehong
left a comment
There was a problem hiding this comment.
Checked the paths this relies on. The conflict checks in table_commit.rs that DML retries on (check_delete_entries_against_base, validate_row_id_alignment, validate_deleted_files) all return DataInvalid { source: None } with these prefixes, the uncertain outcome wraps the error in UnexpectedError, and the five retry sites (UPDATE, CoW UPDATE, both DELETEs and MERGE) pass the commit error through to_datafusion_error without another layer, so the top-level check sees the real error.
Since the classifier now depends on the exact prefix, I also checked that a reworded core message would be caught: renaming the two prefixes in table_commit.rs makes native_merge_retries_with_fresh_target_and_one_source_capture fail. On 2090c8c the merge_into unit tests (17), native_merge (16), rest_management_procedures (49) and the whole paimon-datafusion suite (1448) pass.
Purpose
DataFusion searched the entire commit error for conflict text. If REST published a snapshot and then returned an error containing
Row ID conflictorDelete conflict, DataFusion could run the UPDATE again. A singlevalue = value + 1changed10to12.Brief change log
Classify conflicts from the top-level Paimon error. Genuine row-ID and delete conflicts still trigger replanning on their respective paths. An uncertain commit outcome propagates to the caller.
Tests
11.API and Format
No public API or storage format changes.
Documentation
No documentation update required.