Skip to content

Commit c164573

Browse files
fix: add ability to use single-row transactions
fixes #10018
1 parent fe9deb1 commit c164573

File tree

1 file changed

+5
-1
lines changed
  • bigtable/google/cloud/bigtable

1 file changed

+5
-1
lines changed

bigtable/google/cloud/bigtable/row.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,7 @@ def commit(self):
582582
table_name=self._table.name,
583583
row_key=self._row_key,
584584
predicate_filter=self._filter.to_pb(),
585+
app_profile_id=self._table._app_profile_id,
585586
true_mutations=true_mutations,
586587
false_mutations=false_mutations,
587588
)
@@ -908,7 +909,10 @@ def commit(self):
908909

909910
data_client = self._table._instance._client.table_data_client
910911
row_response = data_client.read_modify_write_row(
911-
table_name=self._table.name, row_key=self._row_key, rules=self._rule_pb_list
912+
table_name=self._table.name,
913+
row_key=self._row_key,
914+
rules=self._rule_pb_list,
915+
app_profile_id=self._table._app_profile_id
912916
)
913917

914918
# Reset modifications after commit-ing request.

0 commit comments

Comments
 (0)