Skip to content

Commit 9bec165

Browse files
author
Yingjian Wu
committed
wip
1 parent 404b2cd commit 9bec165

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyiceberg/table/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ def upsert(
807807
case_sensitive=case_sensitive,
808808
)
809809

810-
if branch is not None:
810+
if branch in self.table_metadata.refs:
811811
matched_iceberg_record_batches_scan = matched_iceberg_record_batches_scan.use_ref(branch)
812812

813813
matched_iceberg_record_batches = matched_iceberg_record_batches_scan.to_arrow_batch_reader()

0 commit comments

Comments
 (0)