From 90284a32e21844722d5a7a14b357521f73dadaf4 Mon Sep 17 00:00:00 2001 From: Carlos Timoteo Date: Wed, 6 Dec 2023 16:00:58 -0500 Subject: [PATCH] Update cltv_query_template.sqlx --- sql/query/cltv_query_template.sqlx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/query/cltv_query_template.sqlx b/sql/query/cltv_query_template.sqlx index 24311a92..f8f19fd6 100644 --- a/sql/query/cltv_query_template.sqlx +++ b/sql/query/cltv_query_template.sqlx @@ -2,6 +2,6 @@ SELECT * EXCEPT(user_pseudo_id, processed_timestamp), user_pseudo_id AS client_id, EXTRACT(DATE FROM processed_timestamp AT TIME ZONE 'UTC') AS inference_date FROM `{{source_table}}` - WHERE active_users_past_1_30_day > 0 + WHERE prediction > 0 ORDER BY prediction DESC - LIMIT 1000 \ No newline at end of file + LIMIT 1000