Last active
July 9, 2021 12:23
-
-
Save asmega/7cd47caafc02a0ff51d83444ce98e014 to your computer and use it in GitHub Desktop.
simplest way to upload csv google bigquery
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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