Skip to content

fix(datafusion): reject unsupported conflict clauses before DML writes. - #1591

Open
slfan1989 wants to merge 1 commit into
apache:mainfrom
slfan1989:paimon-rust-1590
Open

slfan1989 wants to merge 1 commit into
apache:mainfrom
slfan1989:paimon-rust-1590

Conversation

@slfan1989

Copy link
Copy Markdown
Contributor

Purpose

Linked issue: close #1590

Prevent DataFusion from modifying data when INSERT OVERWRITE ... PARTITION or UPDATE contains unsupported conflict-handling syntax.

Brief change log

  • Reject ON CONFLICT, ON DUPLICATE KEY UPDATE, IGNORE, OR conflict actions, and REPLACE in partition overwrite statements before creating a writer.
  • Move the UPDATE conflict check to the common entry point so all table types reject OR IGNORE, OR REPLACE, and other OR conflict actions before writing.

Tests

Regression tests verify that rejected overwrites preserve both the target partition and other partitions, and that rejected updates leave existing rows unchanged. All 162 tests passed across five related integration suites.

API and Format

No.

Documentation

No.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] DataFusion silently ignores conflict clauses in partition overwrite and UPDATE

1 participant