You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# create an array to store tables for which the order of generation matters
71
+
# i.e. these tables cannot be generated in alphabetical order, as done in the later loop
72
+
TABLES_TO_SKIP=()
73
+
fordir_and_tablein$DIR_AND_TABLES_TO_SKIP;
74
+
do
75
+
tbl=`echo ${dir_and_table}| cut -d. -f2`
76
+
TABLES_TO_SKIP+=($tbl)
77
+
done
78
+
79
+
echo$TABLES_TO_SKIP
71
80
# the order *only* matters during the conversion step because our loop is
72
81
# inserting table build commands into the postgres-make-concepts.sql file
73
82
fordin demographics measurement comorbidity medication treatment firstday organfailure score sepsis;
@@ -93,17 +102,22 @@ do
93
102
echo"DROP TABLE IF EXISTS ${tbl}; CREATE TABLE ${tbl} AS ">>"postgres/${d}/${tbl}.sql"
94
103
cat "${d}/${tbl}.sql"| sed -r -e "${REGEX_ARRAY}"| sed -r -e "${REGEX_HOUR_INTERVAL}"| sed -r -e "${REGEX_INT}"| sed -r -e "${REGEX_DATETIME_DIFF}"| sed -r -e "${REGEX_DATETIME_TRUNC}"| sed -r -e "${REGEX_SCHEMA}"| sed -r -e "${REGEX_INTERVAL}">>"postgres/${d}/${fn}"
0 commit comments