Skip to content

feat(datafusion): consolidate DML WriteBuilder usage#384

Open
QuakeWang wants to merge 1 commit into
apache:mainfrom
QuakeWang:dml-writebuilder
Open

feat(datafusion): consolidate DML WriteBuilder usage#384
QuakeWang wants to merge 1 commit into
apache:mainfrom
QuakeWang:dml-writebuilder

Conversation

@QuakeWang

Copy link
Copy Markdown
Contributor

Purpose

Linked issue: close #232

DataFusion DML already had table write/update paths, but append-only MERGE INTO still created write and commit builders at separate call sites, and the supported/unsupported DML boundaries were not documented clearly. This made the WriteBuilder integration look incomplete and left primary-key row-level DML easy to misinterpret as supported.

Brief change log

  • Reuse one WriteBuilder across append-only CoW MERGE INTO not-matched inserts and the final commit.
  • Keep CopyOnWriteMergeWriter responsible for CoW rewrites instead of exposing it through the public builder API.
  • Add regression coverage for unsupported UPDATE, DELETE, and MERGE INTO cases.
  • Document the current DataFusion DML support matrix.

Tests

  • cargo fmt --all -- --check
  • cargo clippy --all-targets --workspace --features fulltext,vortex -- -D warnings
  • cargo test -p paimon-datafusion --test update_tests --test delete_tests --test merge_into_tests --test append_merge_into

API and Format

No public API or storage format changes.

Documentation

Updated docs/src/sql.md with the DataFusion DML support matrix.

Create one WriteBuilder for append-only MERGE INTO attempts and use it for not-matched inserts and the final commit.

Document the current DataFusion DML support matrix and add regression coverage for unsupported UPDATE, DELETE, and MERGE INTO cases.

Signed-off-by: QuakeWang <wangfuzheng0814@foxmail.com>
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.

Introduce WriteBuilder

1 participant