aboutsummaryrefslogtreecommitdiffstats
path: root/sql
diff options
context:
space:
mode:
Diffstat (limited to 'sql')
-rw-r--r--sql/dawn.sql6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/dawn.sql b/sql/dawn.sql
index 014fe8ed..68e03ff0 100644
--- a/sql/dawn.sql
+++ b/sql/dawn.sql
@@ -1114,13 +1114,13 @@ CREATE OR REPLACE function imm_date(p_date date)
RETURNS date AS $$
from dates import imm_date
return imm_date(p_date)
-$$ LANGUAGE plpython2u;
+$$ LANGUAGE plpython3u;
CREATE OR REPLACE function days_accrued(p_date date)
RETURNS integer AS $$
from dates import days_accrued
return days_accrued(p_date)
-$$ LANGUAGE plpython2u;
+$$ LANGUAGE plpython3u;
CREATE MATERIALIZED VIEW factors_history AS
WITH temp AS (
@@ -1726,7 +1726,7 @@ df = df.reindex(columns=source_list).reset_index()
for t in (df.itertuples(index=False)):
yield [t[0], t[1]] + [None if np.isnan(v) else v for v in t[2:]]
-$$ LANGUAGE plpythonu;
+$$ LANGUAGE plpython3u;
CREATE OR REPLACE VIEW globeop_tranche_risk AS