smueller
New Contributor II
If not grouping by something else:
 
SELECT array_join(collect_set(field_name), ',') field_list
    FROM table