Skip to content

Commit

Permalink
Add headless flag to improve output.
Browse files Browse the repository at this point in the history
Signed-off-by: Caleb Brown <calebbrown@google.com>
  • Loading branch information
calebbrown committed Feb 7, 2024
1 parent b676132 commit f7ce9ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/bq_load.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ for bucket_prefix in `gsutil ls "$RESULT_BUCKET"`; do

echo "## Loading $bucket_prefix into \`$PROJECT_ID.$LOAD_DATASET.$table_name\`."
bq load \
--headless \
--project_id="$PROJECT_ID" \
--dataset_id="$LOAD_DATASET" \
--replace \
Expand All @@ -66,4 +67,4 @@ query="CREATE OR REPLACE TABLE \`$PROJECT_ID.$DEST_DATASET.$DEST_TABLE\` LIKE \`
echo "## Updating \`$PROJECT_ID.$DEST_DATASET.$DEST_TABLE\` from shards."
echo "Executing query: '$query'"

bq query --nouse_legacy_sql --project_id="$PROJECT_ID" "$query"
bq query --headless --nouse_legacy_sql --project_id="$PROJECT_ID" "$query"

0 comments on commit f7ce9ce

Please sign in to comment.