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