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 46e9f9e commit e892afdCopy full SHA for e892afd
mimic-iv/buildmimic/duckdb/import_duckdb.sh
@@ -97,6 +97,13 @@ make_table_name () {
97
# load data into database
98
find "$MIMIC_DIR" -type f -name '*.csv???' | sort | while IFS= read -r FILE; do
99
make_table_name "$FILE"
100
+
101
+ # skip directories which we do not expect in mimic-iv
102
+ # avoids syntax errors if mimic-iv-ed in the same dir
103
+ case $DIRNAME in
104
+ (hosp|icu) ;; # OK
105
+ (*) continue;
106
+ esac
107
echo "Loading $FILE .. \c"
108
try duckdb "$OUTFILE" <<-EOSQL
109
COPY $TABLE_NAME FROM '$FILE' (HEADER);
0 commit comments