Skip to content
Advertisement

Unable to unnest in bigquery when there is comma inside list which is of type string

Unable to unnest in bigquery when there is comma inside list which is of type string. I have data in following format where value is type of string

When I use following query, It is incorrectly splitting and unable to get logic right in regexp_replace

With the above code, I am getting

My expected output is

I have followed following link converting array of strings to single row values

Any help is really appreciated

Advertisement

Answer

Try this:

enter image description here

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