diff --git a/concepts/make_concepts.sh b/concepts/make_concepts.sh index 6169d77..900d95c 100644 --- a/concepts/make_concepts.sh +++ b/concepts/make_concepts.sh @@ -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 \ No newline at end of file