Skip to content

Commit

Permalink
don't case datediff 'second' arg
Browse files Browse the repository at this point in the history
  • Loading branch information
drewbanin committed Feb 6, 2017
1 parent 7dc1cc1 commit 043440c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/page_views/snowplow_web_events_time.sql
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ merged as (
max(max_tstamp) as max_tstamp,
sum(pv_count) as pv_count,
sum(pp_count) as pp_count,
datediff('second'::text, min(min_tstamp)::timestamp, max(max_tstamp)::timestamp) as time_engaged_in_s
datediff('second', min(min_tstamp)::timestamp, max(max_tstamp)::timestamp) as time_engaged_in_s

from unioned
group by 1
Expand Down

0 comments on commit 043440c

Please sign in to comment.