Working with arrays stored on a database column

If i’m following this right you have a query that will return an array non comma separated and you want them to be made into a comma separated array?

For this you could use the join formatter:

To use join simply select the query returning the array, then add the join formatter select a comma as the separator and then the property you want to repeat in this case category_name