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 547f623 commit bbb2bedCopy full SHA for bbb2bed
mimic-iv/concepts/convert_bigquery_to_postgres.sh
@@ -17,8 +17,6 @@ export REGEX_INT="s/CAST\(hr AS INT64\)/CAST\(hr AS bigint\)/g"
17
export REGEX_ARRAY="s/GENERATE_ARRAY\(-24, CEIL\(DATETIME\_DIFF\(it\.outtime_hr, it\.intime_hr, HOUR\)\)\)/ARRAY\(SELECT \* FROM generate\_series\(-24, CEIL\(DATETIME\_DIFF\(it\.outtime_hr, it\.intime_hr, HOUR\)\)\)\)/g"
18
export REGEX_HOUR_INTERVAL="s/INTERVAL CAST\(hr AS INT64\) HOUR/interval \'1\' hour * CAST\(hr AS bigint\)/g"
19
export REGEX_SECONDS="s/SECOND\)/\'SECOND\'\)/g"
20
-export CONNSTR='-U postgres -h localhost -p 5500 -d mimic-iv' # -d mimic
21
-
22
23
# First, we re-create the postgres-make-concepts.sql file.
24
echo "\echo ''" > $TARGET_PATH/postgres-make-concepts.sql
0 commit comments