BigQuery: Allow loading data from a list of URLs#2000
Conversation
|
Can you mix files and URLs? |
|
@blowmage Local files? Not as far as I could tell. To upload local files you send a media-upload request to the
Additionally:
That said, I haven't tried to see what the API does if you use a media-upload request and set On the CI failure, I could use some guidance. I don't know how to address a doc test failure, "This code example is not yet mocked." |
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.
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.
|
@jeremywadsack The doctest failure is because you added a new code example labeled "Pass a list of google-cloud-storage files:", but didn't configure the documentation mocks for it in |
|
@blowmage ba48571 adds doctest mocks (thanks for the pointer). That also reminded me I should document the example for the other three methods. I ran |
|
I pulled this branch and ran |
bd03b16 to
5e95c59
Compare
|
Sqashed and rebased off |
|
I'll merge when green (just a formality...) |
|
Thank you for the rebase/squash! |
|
Thank you @jeremywadsack, really appreciate your contributions! |
|
I really appreciate both of your responsiveness to issues and pull requests. I realize this is a really huge repository covering most of the GCP products. It's nice to have things moved through so quickly to releases. |
In the BigQuery API documentation, a load job can be given a list or source URIs. This PR updates the client to allow you to send an array of
Storageobjects, or URLs (andStringorURI), when loading data into a table or dataset.The initial commit adds some table-reference acceptance tests that were missing, but make it complete with the table acceptance tests.
I noticed that there are very few load/load_job acceptance tests for the dataset. Would you like me to also fill that in to cover all the various cases we have for table and table-reference?