Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
simplest way to upload csv google bigquery
docker pull google/cloud-sdk:latest
docker run --rm -it docker.io/google/cloud-sdk:latest
gcloud auth activate-service-account --key-file=/google-service-account.json
# auto detect csv headers
# replace table contents with csv file
bq load --autodetect --replace mydb.mytable /data.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment