I have CSV files in a container in Data Lake and I am trying to transform the attribute column(which is in json) in the files into multiple columnns. When I try using Data flows to do that, It recognizes the attribute column as string and I am unable to change it to array so that I can either flatten or create derived columns out of it. Am i doing something wrong here CSV File Format:
ID | Name | Attribute |
---|---|---|
123 | Test | {"Referrer URL":null,"Query Parameters":"topics"} |
456 | Test2 | {"Referrer URL":"www.google.com","Query Parameters":"WebTopics"} |
After following guidance of Mark and Joseph: Issues faced while using parsing function and removing spaces from keys in json objects in those columns
- wouldn't the replace function also remove spaces from the values associated with those keys. That could be an issue if we get sentence type data in those fields.
- I am still running into issues when I follow all the steps mentioned by Joseph. It may be associated with how I set up the dataset. If I use data preview to inspect the data, I see the the source does not properly fill up the columns. In the example, it just stops after Refferer URL being null and does not show the other values as well as the closing brackets of the json object in the column. adding pictures of datalake connection setup.