-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: add ability to use single-row transactions #10021
fix: add ability to use single-row transactions #10021
Conversation
401e048
to
c164573
Compare
Thanks for catching this! |
@@ -582,6 +582,7 @@ def commit(self): | |||
table_name=self._table.name, | |||
row_key=self._row_key, | |||
predicate_filter=self._filter.to_pb(), | |||
app_profile_id=self._table._app_profile_id, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this! Would you be able to add a unit test for this as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this contribution. It seems 2 of the testcases are failing as well:
Also, it isn't currently passing lint. if you run |
thanks @crwilcox updating now |
7a13fd1
to
20a4838
Compare
Thanks @mackenziestarr for tidying up the tests and your contribution! |
Hey @mackenziestarr, we just completed a release of this: https://github.com/googleapis/google-cloud-python/releases/tag/bigtable-1.2.1 |
Fixes #10018 🦕
Tested manually with the following script, no longer getting
google.api_core.exceptions.FailedPrecondition: 400 Single-row transactions are not allowed by this app profile
and confirmed data was written to my test table.