Skip to content

Instantly share code, notes, and snippets.

View mbyrne00's full-sized avatar

Matt Byrne mbyrne00

View GitHub Profile
@mbyrne00
mbyrne00 / load_csvs_to_bigquery.sh
Last active March 21, 2025 03:51
Load one or more CSVs with a header row to BigQuery, using the file name as the table name. Script to help quickly get data into BigQuery that you can then transform later.
#!/usr/bin/env bash
set -e
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
# Default values
location="australia-southeast1"
schema_overrides=()
dupe_col_suffix="__dupe"