Cast the start/end times with timezone.

This commit is contained in:
Bill Nottingham 2020-04-14 10:53:57 -04:00
parent 98a4e85db4
commit a296f64696

View File

@ -249,8 +249,8 @@ def copy_tables(since, full_path):
main_jobevent.job_id,
main_jobevent.host_id,
main_jobevent.host_name,
CAST(main_jobevent.event_data::json->>'start' AS TIMESTAMP) AS start,
CAST(main_jobevent.event_data::json->>'end' AS TIMESTAMP) AS end,
CAST(main_jobevent.event_data::json->>'start' AS TIMESTAMP WITH TIME ZONE) AS start,
CAST(main_jobevent.event_data::json->>'end' AS TIMESTAMP WITH TIME ZONE) AS end,
main_jobevent.event_data::json->'duration' AS duration,
main_jobevent.event_data::json->'res'->'warnings' AS warnings,
main_jobevent.event_data::json->'res'->'deprecations' AS deprecations