-
Notifications
You must be signed in to change notification settings - Fork 53
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
BigQuery Destination #115
Comments
|
@poundifdef Can i get this assigned? , will give it a try over the weekend.. |
@poundifdef will liek to add my name for attempt |
💡 @mohanish2504 submitted a pull request that claims the bounty. You can visit your bounty board to reward. |
🎉🎈 @mohanish2504 has been awarded $500! 🎈🎊 |
We want to be able to read and write data from BigQuery in bulk. Here are the steps to accomplish that:
Step 1: Create new BigQuery Destination interface
bigquery
bigquery
package. For this first step, you may stub these functions (panic("not implemented")
)Step 2: Implement Queries from BigQuery
Set up configuration parameters for BigQuery.
QueryJSON()
andQueryCSV()
functions. This should execute the input query and output the result in the right format. You may find it useful to create a generic privatequery()
function, and then have the JSON/CSV functions format data while returning.Close()
function should clean up the BigQuery connection, and we should also close any open handlers related to executing the query.Step 3: Implement Table Creation
Next, when the user inserts new data to big query, we want to create tables and columns based on the input data. Refer to the other packages in
pkg/destinations
for how to do this.CreateEmptyTable()
function. This should create a table with the given name along with an int64 column called__row_id
. You may use this as a reference. This should only create the table if it doesn't already exist.CreateColumns()
function. This should read the input file and alter the BigQuery table to add columns if they do not exist. Here is a reference for how to do this.Implement Data Insertion
We want to bulk upload data to BigQuery from the input file. This means imlementing the
InsertFromNDJsonFile()
function.The text was updated successfully, but these errors were encountered: