Skip to content

Commit 336dcf8

Browse files
author
Abanoub Doss
committed
docs(upsert): add rationale for duplicate check ordering
1 parent 12d978e commit 336dcf8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pyiceberg/table/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,7 @@ def upsert(
823823
f"Extension type '{arr.type}' for column '{col}' is not currently supported as a join key in upsert."
824824
)
825825

826+
# Validate uniqueness after type checks to avoid comparing/hashing unsupported types.
826827
if upsert_util.has_duplicate_rows(df, join_cols):
827828
raise ValueError("Duplicate rows found in source dataset based on the key columns. No upsert executed")
828829

0 commit comments

Comments
 (0)