diff --git a/python/python/lancedb/merge.py b/python/python/lancedb/merge.py index 299c188a0..386c592cd 100644 --- a/python/python/lancedb/merge.py +++ b/python/python/lancedb/merge.py @@ -51,6 +51,15 @@ class LanceMergeInsertBuilder(object): If there are multiple matches then the behavior is undefined. Currently this causes multiple copies of the row to be created but that behavior is subject to change. + + Parameters + ---------- + where: Optional[str], default None + An optional filter to limit which rows are updated. Column + references in this expression must be prefixed with "target." + to refer to the existing table data. For example, to only + update rows where the existing color is red, use: + ``where="target.color = 'red'"`` """ self._when_matched_update_all = True self._when_matched_update_all_condition = where