Skip to content
Advertisement

How to query a struct in BigQuery where two key: value pairs matter

I have data like this:

And want to filter rows which contain such key:value pairs: color=blue and size=big. So only this one row remains:

Advertisement

Answer

You can use unnest():

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement