Skip to content

Commit

Permalink
Update to Handle Boolean Type First Party Labels
Browse files Browse the repository at this point in the history
  • Loading branch information
blackwire authored Sep 24, 2024
1 parent 26d1bd6 commit 0b2b5fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/controller/ml_model/templates/model_bqml.sql
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ aggregate_behavior AS (
FROM events AS e
INNER JOIN user_variables AS uv
ON e.unique_id = uv.unique_id
WHERE (uv.label > 0 AND e.date <= uv.trigger_date)
OR uv.label = 0
WHERE (CAST(uv.label AS INT64) > 0 AND e.date <= uv.trigger_date)
OR CAST(uv.label AS INT64) = 0
GROUP BY 1
),
unified_dataset AS (
Expand Down

0 comments on commit 0b2b5fc

Please sign in to comment.