We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a2643b commit 06f2b3bCopy full SHA for 06f2b3b
mimic-iv/concepts/make_concepts.sh
@@ -6,6 +6,17 @@ export TARGET_DATASET=mimiciv_derived
6
# note: max_rows=1 *displays* only one row, but all rows are inserted into the destination table
7
BQ_OPTIONS='--quiet --headless --max_rows=0 --use_legacy_sql=False --replace'
8
9
+# drop the existing tables in the target dataset
10
+for TABLE in `bq ls physionet-data:${TARGET_DATASET} | cut -d' ' -f3`;
11
+do
12
+ # skip the first line of dashes
13
+ if [[ "${TABLE:0:2}" == '--' ]]; then
14
+ continue
15
+ fi
16
+ echo "Dropping table ${TARGET_DATASET}.${TABLE}"
17
+ bq rm -f -q ${TARGET_DATASET}.${TABLE}
18
+done
19
+
20
# generate a few tables first as the desired order isn't alphabetical
21
for table_path in demographics/icustay_times;
22
do
0 commit comments