identityMap query from snapshot table
profilesnapshot dataset has a field identityMap which has value in map structure.
This is one of the sample value of identityMap field from the snapshot.
[ecid -> "{(NULL,49790455655365226853605257450011089444,NULL)}",gid -> "{(NULL,3bcaebe5-6723-4822-abd4-2cfb22c4b908,NULL)}",vid -> "{(NULL,bacb8bd9d4aadef2d22482a829f1c149,NULL)}"] [ups -> "[795d22e5-ba6f-43e9-b8d8-e96f2be2e24c -> "(NULL,realized,2025-07-05 16:54:55.0)",73ffb7e5-7988-4108-9dd3-4403b2773915 -> "(NULL,realized,2025-07-05 16:54:55.0)"]"]
i want to query snapshot dataset for a specific ecid. i have tried different syntax (cast, unnest, json_extract etc) but none of them worked. this is one of the query i tried. whats the correct syntax to access map values in snapshot dataset ?
SELECT * FROM profile_snapshot_export_44b7518a_0a16_44bd_888c_891a9999ef0a where
JSON_EXTRACT(identityMap, '$.ecid[1]') = '49790455655365226853605257450011089444'
