From d55624c98afa45e822860efeef2f0da0f172403e Mon Sep 17 00:00:00 2001 From: Carlos Timoteo Date: Wed, 4 Dec 2024 12:43:41 -0500 Subject: [PATCH] Update invoke_purchase_propensity_training_preparation.sqlx --- .../invoke_purchase_propensity_training_preparation.sqlx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/query/invoke_purchase_propensity_training_preparation.sqlx b/sql/query/invoke_purchase_propensity_training_preparation.sqlx index 6fafc30e..1793ad1c 100644 --- a/sql/query/invoke_purchase_propensity_training_preparation.sqlx +++ b/sql/query/invoke_purchase_propensity_training_preparation.sqlx @@ -64,8 +64,8 @@ IF churners > 0 THEN SET train_start_date = min_date; SET train_end_date = max_date; ELSE - SET train_start_date = DATE '2000-01-01'; - SET train_end_date = DATE '2024-12-01'; + SET train_start_date = DATE_SUB(CURRENT_DATE(), INTERVAL 3 YEAR); + SET train_end_date = DATE_SUB(CURRENT_DATE(), INTERVAL 5 DAY); END IF; -- Finally, the script calls a stored procedure, passing the adjusted training dates and split numbers as arguments. This stored procedure