Uh oh!
There was an error while loading. Please reload this page.
Jobs: load from storage - #1056
Conversation
dhermes
commented
Aug 12, 2015
Does this have a diffbase? |
tseaver
commented
Aug 12, 2015
Nope -- I rebased it before pushing. Too big? |
dhermes
commented
Aug 12, 2015
I just wasn't sure since there were 8 commits. Also, you're failing pep8 (that one runs fast, pylint is the slow one). |
dhermes
commented
Aug 12, 2015
Also ISTM a rebase won't feel very good due to the merging of #1051. |
tseaver
commented
Aug 12, 2015
I will fix it up (both the pep8 and the date stuff) and re-push. |
dhermes
commented
Aug 12, 2015
Thanks. Ping me when you push. |
tseaver
commented
Aug 12, 2015
Ugh! The pep8 fix was trivial, but working around the pylint 'too-many-branches' failures made me grind my teeth (4c14890) |
dhermes
commented
Aug 12, 2015
This thing is all ready to review? |
tseaver
commented
Aug 13, 2015
Hold off a bit -- I'm adding a system test for the "load from cloud storage" case, and it is failing. |
tseaver
commented
Aug 13, 2015
@dhermes OK, got the system test added and passing. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Found while attempting to add a system test for the 'load from storage' case.
Users who want to avoid tripping over string literal mismatches can use class constants instead. Addresses: https://github.com/GoogleCloudPlatform/gcloud-python/pull/1056/files#r37029533
- 'Client.load_from_storage' -> 'Client.load_table_from_storage'. - 'job.LoadFromStorageJob' -> 'job.LoadTableFromStorageJob'. Addresses: https://github.com/GoogleCloudPlatform/gcloud-python/pull/1056/files#r37120652
tseaver
commented
Aug 17, 2015
I didn't want to eat the extra dependency. We have #1031 to track the idea, though. |
dhermes
commented
Aug 17, 2015
Why not? It's lightweight and hopefully most users already have it >>>importenum>>>>>>classRedBlue(enum.Enum):
... RED='RED'
... BLUE='BLUE'
... >>>>>>to_validate='RED'>>>rb=RedBlue(to_validate)
>>>print(rb)
RedBlue.RED>>>print(rb.value)
RED>>>>>>to_validate='GREEN'>>>try:
... RedBlue(to_validate)
... exceptValueErrorasexc:
... print(repr(exc))
... print('%s was not validated'% (to_validate,))
... ValueError('GREEN is not a valid RedBlue',)
GREENwasnotvalidated |
tseaver
commented
Aug 17, 2015
Most users are on Python2, and likely won't have it unless some other library has pushed them to add it. Again, we can clean up here (and in the other APIs) when we address #1031. |
dhermes
commented
Aug 17, 2015
LGTM. I really hope the follow-up commits can spread out some of the pain here. I was saying that most Python 2 only users would have lots of libraries installed that straddled Py2 and Py3, and hence would have a good chance that one of them used |
dhermes
commented
Aug 17, 2015
@tseaver Please ping me on anything that will get rebased after this goes in. |
Fragment tests are defined by a small proto file describing an API surface with characteristics such that it is desirable to test the generated surface for correctness or to prevent regressions. As part of a fragment test, the generator is run on a fragment to create a GAPIC library for the fragment. The generated unit tests for the fragment are then executed to test the surface.
🤖 I have created a release \*beep\* \*boop\* --- ## [0.55.0](https://www.github.com/googleapis/gapic-generator-python/compare/v0.54.0...v0.55.0) (2021-11-01) ### Features * add fragment tests ([#1056](https://www.github.com/googleapis/gapic-generator-python/issues/1056)) ([9d9b33d](https://www.github.com/googleapis/gapic-generator-python/commit/9d9b33dadf587a6d0b09031edeea597d6d2eae62)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Fixes#1056. Co-authored-by: Chalmer Lowe <chalmerlowe@google.com>
* chore: update Java and Python dependencies PiperOrigin-RevId: 408420890 Source-Link: googleapis/googleapis@2921f9f Source-Link: googleapis/googleapis-gen@6598ca8 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjU5OGNhOGNiYmY1MjI2NzMzYTA5OWM0NTA2NTE4YTVhZjZmZjc0YyJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
…dding interceptors support for testing (#1056) * feat: Fixing and refactoring transaction retry logic in dbapi. Also adding interceptors support for testing * Comments incorporated and changes for also storing Cursor object with the statements details added for retry * Some refactoring of transaction_helper.py and maintaining state of rows update count for batch dml in cursor * Small fix * Maintaining a map from cursor to last statement added in transaction_helper.py * Rolling back the transaction when Aborted exception is thrown from interceptor * Small change * Disabling a test for emulator run * Reformatting
Add support for jobs loading table data from CloudStorage files.