Skip to content

Commit

Permalink
fix partitioning (#6939)
Browse files Browse the repository at this point in the history
  • Loading branch information
meganshand authored Nov 5, 2020
1 parent bb0c361 commit 39dbb1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion scripts/variantstore_wdl/ImportArrays.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,9 @@ task LoadArrays {
fi
set +e
bq show --project_id ~{project_id} $SAMPLE_LIST_TABLE > /dev/null
BQ_SHOW_RC=$?
set -e
if [ $? -ne 0 ]; then
if [ $BQ_SHOW_RC -ne 0 ]; then
echo "making table $SAMPLE_LIST_TABLE"
bq --location=US mk --project_id=~{project_id} $SAMPLE_LIST_TABLE ~{sample_list_schema}
#TODO: add a Google Storage Transfer for the table when we make it.
Expand Down
3 changes: 2 additions & 1 deletion scripts/variantstore_wdl/ImportGenomes.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,9 @@ task LoadData {
if [ $NUM_FILES -gt 0 ]; then
set +e
bq show --project_id ~{project_id} $TABLE > /dev/null
BQ_SHOW_RC=$?
set -e
if [ $? -ne 0 ]; then
if [ $BQ_SHOW_RC -ne 0 ]; then
echo "making table $TABLE"
bq --location=US mk ${PARTITION_STRING} --project_id=~{project_id} $TABLE ~{schema}
#TODO: add a Google Storage Transfer for the table when we make it.
Expand Down

0 comments on commit 39dbb1a

Please sign in to comment.