Skip to content

Commit

Permalink
Fix issue with multiple end hooks failing (Close #152)
Browse files Browse the repository at this point in the history
  • Loading branch information
rlh1994 committed Dec 1, 2023
1 parent bc69109 commit f562379
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ You may obtain a copy of the Snowplow Community License Version 1.0 at https://d
begin transaction;
--temp table to find the greatest last_success per model.
--this protects against partial backfills causing the last_success to move back in time.
create temporary table snowplow_models_last_success as (
create temporary table snowplow_models_last_success (
model varchar,
last_success {{type_timestamp()}}
);
insert into snowplow_models_last_success (
select
a.model,
greatest(a.last_success, b.last_success) as last_success
Expand Down

0 comments on commit f562379

Please sign in to comment.