Skip to content

Commit

Permalink
Update invoke_purchase_propensity_training_preparation.sqlx
Browse files Browse the repository at this point in the history
  • Loading branch information
chmstimoteo authored Dec 9, 2024
1 parent a4ca058 commit fda8762
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ SET purchasers = (SELECT COUNT(DISTINCT user_pseudo_id)
-- Setting Training Dates
-- If there are churners in the training set, then keep the calculated dates, or else set
-- the start and end dates to a fixed interval preventing `train_start_date` and `train_end_date` from being NULL.
IF churners > 0 THEN
IF purchasers > 0 THEN
SET train_start_date = min_date;
SET train_end_date = max_date;
ELSE
Expand Down

0 comments on commit fda8762

Please sign in to comment.