big-mouse-26005
07/24/2024, 3:05 PMevent_properties:experiment_id
to event_properties.experiment_id
and so on, but now have errors with the generated metrics.
I have "Unrecognized name: event_name; Did you mean event_time? at [17:15]" when looking at the metrics from the sidebar and "No matching signature for operator = for argument types: JSON, STRING. Supported signature: ANY = ANY at [28:7]" for query results.
Not sure if this is a super edge case or something someone may have seen before?big-mouse-26005
07/24/2024, 3:05 PMfresh-football-47124
fresh-football-47124
fresh-football-47124
fresh-football-47124
big-mouse-26005
07/24/2024, 4:41 PM:
between event_properties.variation_id
in the generated version
SELECT
user_id as user_id,
event_time as timestamp,
JSON_VALUE(event_properties.experiment_id) as experiment_id,
JSON_VALUE(event_properties.variation_id) as variation_id,
device_family as device,
os_name as os,
country,
paying
FROM
`product-analytics-54321`.`mc_amplitude_uat`.EVENTS_123456
WHERE
event_type = 'experiment viewed'
AND user_id is not null
edit: This needed to convert from JSON to string as well, updated above.big-mouse-26005
07/24/2024, 4:41 PMbig-mouse-26005
07/24/2024, 4:41 PMbig-mouse-26005
07/24/2024, 5:20 PMSELECT
amplitude_id as anonymous_id,
event_time as timestamp
FROM
`product-analytics-54321.mc_amplitude_uat.EVENTS_123456`
WHERE
event_time BETWEEN '{{date startDateISO "yyyy-MM-dd"}}' AND '{{date endDateISO "yyyy-MM-dd"}}'
AND event_name = 'recipe CTA clicked'
to
SELECT
amplitude_id as anonymous_id,
user_id,
event_time as timestamp
FROM
`product-analytics-54321.mc_amplitude_uat.EVENTS_123456`
WHERE
event_time BETWEEN '{{date startDateISO "yyyy-MM-dd"}}' AND '{{date endDateISO "yyyy-MM-dd"}}'
AND event_type = 'recipe CTA clicked'
So event_name
needed to be event_type
and I needed to add user_id
inbig-mouse-26005
07/24/2024, 5:35 PMevent_name
to event_type
and each of the event_properties:experiment_id
lookups to JSON_VALUE(event_properties.experiment_id)
fresh-football-47124
fresh-football-47124
big-mouse-26005
07/24/2024, 10:23 PMbig-mouse-26005
07/24/2024, 10:23 PM