-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Implementing HappyBase Table atomic counter helpers. #1514
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
Conversation
| """ | ||
| row = self._low_level_table.row(row) | ||
| if isinstance(column, six.binary_type): | ||
| column = column.decode('utf-8') |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
@jgeewax HappyBase also has a |
|
This LGTM, although from a readability nit standpoint |
|
RE: "Hard to follow." That's the kind of feedback I was hoping to surface (by breaking into small PRs). Do you think the low-level row should handle more of the responsibilities? Do you think the method should use a helper? etc. |
|
Perhaps just some comments in-line. Poor example, but what is |
|
(this also just may be my unfamiliarity with bigtable showing) |
gcloud/bigtable/happybase/table.py
Outdated
| column_cells = modified_cells[column_family_id][column_qualifier] | ||
| if len(column_cells) != 1: | ||
| raise ValueError('Expected server to return one modified cell.') | ||
| bytes_value = column_cells[0][0] |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
I don't think it's your unfamiliarity, but that also is good in that you don't have a bias towards how things should be. I had to look up what |
|
Wow, that is a lot to explain. |
|
Luckily the docstring proves that a picture is worth a thousand words: {
u'col-fam-id': {
b'col-name1': [
(b'cell-val', datetime.datetime(...)),
(b'cell-val-newer', datetime.datetime(...)),
],
b'col-name2': [
(b'altcol-cell-val', datetime.datetime(...)),
],
},
u'col-fam-id2': {
b'col-name3-but-other-fam': [
(b'foo', datetime.datetime(...)),
],
},
} |
|
Ah, very helpful. Can you include a comment that notes the expected format of the |
62b8e75 to
1285aa3
Compare
|
@jonparrott PTAL |
|
LGTM, please squash commits. |
1285aa3 to
bb49935
Compare
Implementing HappyBase Table atomic counter helpers.
* fix: makes default token_url universe aware * fix defaulting
🤖 I have created a release *beep* *boop* --- ## [2.30.0](https://togithub.com/googleapis/google-auth-library-python/compare/v2.29.0...v2.30.0) (2024-06-06) ### Features * Add WebAuthn plugin component to handle WebAuthn get assertion request ([#1464](https://togithub.com/googleapis/google-auth-library-python/issues/1464)) ([e25f336](https://togithub.com/googleapis/google-auth-library-python/commit/e25f336ab49c2018a222458a95ebe083e8a4eb2a)) * ECP Provider drop cryptography requirement ([#1524](https://togithub.com/googleapis/google-auth-library-python/issues/1524)) ([a821d71](https://togithub.com/googleapis/google-auth-library-python/commit/a821d719e2fc7bcdc21737fdf175d6f06aa9a56a)) * Enable webauthn plugin for security keys ([#1528](https://togithub.com/googleapis/google-auth-library-python/issues/1528)) ([e2d5e63](https://togithub.com/googleapis/google-auth-library-python/commit/e2d5e635da2cb2caf8240fb9e07fc381442a9d0c)) ### Bug Fixes * Fix id_token iam endpoint for non-gdu service credentials ([#1506](https://togithub.com/googleapis/google-auth-library-python/issues/1506)) ([93d681e](https://togithub.com/googleapis/google-auth-library-python/commit/93d681e6cfb15eb4a3efada623be8ba73b302257)) * Makes default token_url universe aware ([#1514](https://togithub.com/googleapis/google-auth-library-python/issues/1514)) ([045776e](https://togithub.com/googleapis/google-auth-library-python/commit/045776e5dfa3fb172ffaeb59bfe5c637778a5d34)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
No description provided.