DRAFT: bigquery: Support streaming archival #645
Draft
+496
−149
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Sorry, couldn't finish this before leaving, but basically this adds support for streaming loads into BigQuery.
Reference: https://cloud.google.com/bigquery/docs/write-api-batch
I didn't reach the state of loading ever working.
Here's my testing procedure so far, briefly:
A likely reason for the failure is that I've been bold and hopeful and tried supplying parameters to all the myriad API classes via constructor arguments, and not the very verbose approach of creating a class and setting properties separately as seen in the sample above 🙈 Was just trying to maintain my sanity. So that would be the first thing to try to fix: mimic exactly the way they create everything.
Any way, hit me with questions, if anyone ever picks this up 👍