Skip to content

Instantly share code, notes, and snippets.

@abronte
Created January 18, 2013 18:00
Show Gist options
  • Select an option

  • Save abronte/4566653 to your computer and use it in GitHub Desktop.

Select an option

Save abronte/4566653 to your computer and use it in GitHub Desktop.
opts = {
"schema" => {
"fields" => @your_schema
},
"destinationTable" => {
"tableId" => table,
"projectId" => @bq.project_id,
"datasetId" => @bq.dataset
},
"sourceUris" => [
"gs://your_bucket/yourfile.csv"
]
}
result = @bq.load(opts)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment