Skip to content
This repository has been archived by the owner on Aug 17, 2021. It is now read-only.

Commit

Permalink
move first_day_sofa to last table generated
Browse files Browse the repository at this point in the history
  • Loading branch information
alistairewj committed Dec 12, 2020
1 parent b1f6b6e commit 282a836
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions concepts/make_concepts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,16 @@ do
# table name is file name minus extension
tbl="${fn::-4}"

# skip first_day_sofa as it depends on other firstday queries
if [[ "${tbl}" == "first_day_sofa" ]]; then
continue
fi
echo "Generating ${TARGET_DATASET}.${tbl}"
bq query --use_legacy_sql=False --replace --destination_table=${TARGET_DATASET}.${tbl} < ${d}/${fn}
fi
done
done

# generate first_day_sofa table last
echo "Generating ${TARGET_DATASET}.first_day_sofa"
bq query --use_legacy_sql=False --replace --destination_table=${TARGET_DATASET}.first_day_sofa < firstday/first_day_sofa.sql

0 comments on commit 282a836

Please sign in to comment.