From 17c499177f7173101086fe6b5cc28ecbceb1ce08 Mon Sep 17 00:00:00 2001 From: Neo-X7 Date: Wed, 1 Jul 2026 22:58:58 +0530 Subject: [PATCH] docs(python): add missing parameter documentation for when_matched_update_all (#3536) Fixes #2493 Added target. prefix requirement to where parameter docstring. --- python/python/lancedb/merge.py | 9 +++++++++ 1 file changed, 9 insertions(+) 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