You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add skip_duplicates='match' mode to insert/insert1 (fixes#1049)
New skip_duplicates='match' option: a row is skipped only if a row
with the same primary key already exists AND all secondary unique
index values also match. If the primary key exists but unique index
values differ, DuplicateError is raised.
Compared to skip_duplicates=True (which silently skips any row whose
primary key is already present), 'match' mode detects when incoming
data conflicts with existing data on non-PK unique constraints.
Implementation: two-query approach (select-then-insert) via the new
_filter_match_duplicates() method, which works identically for both
MySQL and PostgreSQL backends. Unique index metadata is read from
self.heading.indexes (populated at heading load time).
Not supported for QueryExpression inserts (raises DataJointError).
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
0 commit comments