Skip to content

Commit 24a571a

Browse files
committed
fix pagination in ls limiting copy to first 50 tables
1 parent 1f93ff4 commit 24a571a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mimic-iv/concepts/copy_concepts_to_versioned_schema.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ else
2727
fi
2828

2929
echo "Copying tables from ${SOURCE_DATASET} to ${TARGET_DATASET}."
30-
for TABLE in `bq ls ${PROJECT_ID}:${SOURCE_DATASET} | cut -d' ' -f3`;
30+
for TABLE in `bq ls -n 500 ${PROJECT_ID}:${SOURCE_DATASET} | cut -d' ' -f3`;
3131
do
3232
# skip the first line of dashes
3333
if [[ "${TABLE:0:2}" == '--' ]]; then

0 commit comments

Comments
 (0)