Skip to content

bug: fix Upsert duplicated rows on partitioned tables - #3780

Open
gabeiglio wants to merge 1 commit into
apache:mainfrom
gabeiglio:fix-upsert-bug
Open

bug: fix Upsert duplicated rows on partitioned tables#3780
gabeiglio wants to merge 1 commit into
apache:mainfrom
gabeiglio:fix-upsert-bug

Conversation

@gabeiglio

@gabeiglio gabeiglio commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Closes #3758

Rationale for this change

_build_delete_files_partition_predicate collects data_file.partition records from the deleted files. Those records hold already transformed values, but it passed them to Transaction._build_partition_predicate, which names fields by the source column. So the values gets transformed a second time.

Are these changes tested?

Yes added a regression test for upsert.

Are there any user-facing changes?

Yes, it fixes the undefined behavior in upsert

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.

upsert duplicates rows on a partitioned table (regression vs 0.11.1)

1 participant