Skip to content

Commit

Permalink
Update auto_audience_segmentation_query_template.sqlx
Browse files Browse the repository at this point in the history
  • Loading branch information
chmstimoteo committed May 10, 2024
1 parent 5ed579b commit 05b5d0c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
SELECT
a.prediction AS a_a_s_prediction,
COALESCE(b.user_id, b.user_pseudo_id) AS client_id,
TIMESTAMP_ADD(b.event_timestamp, INTERVAL 1 MICROSECOND) AS inference_date
CASE WHEN EXTRACT(MICROSECOND FROM b.event_timestamp) = 1 THEN b.event_timestamp ELSE TIMESTAMP_SUB(b.event_timestamp, INTERVAL 1 MICROSECOND) END AS inference_date
FROM
`${mds_project_id}.marketing_ga4_v1_${mds_dataset_suffix}.latest_event_per_user_last_72_hours` b,
`{{source_table}}` a
Expand Down

0 comments on commit 05b5d0c

Please sign in to comment.