### Is your feature request related to a problem or challenge? I'd like to be able to use the equivalent of the postgres function `STRING_AGG`. ### Describe the solution you'd like ``` select string_agg(first_name, ',') as names from tbl group by last_name ``` ### Describe alternatives you've considered _No response_ ### Additional context a few references on `string_agg` https://www.postgresqltutorial.com/postgresql-aggregate-functions/postgresql-string_agg-function/ https://www.postgresql.org/docs/9.0/functions-aggregate.html
Activity
alamb commentedon Oct 23, 2023
FWIW
string_aggI think is a table function, which DataFusion doesn't really have great support for yet.What would you think about implementing something like User Defined Table Functions as a way to implement this? #2177
universalmind303 commentedon Oct 23, 2023
isn't
string_aggis an aggregate function similar toARRAY_AGGwhich is already a supported function?string_agg should be functionally equivalent to the combination of already supported functions
concat_ws(<delimiter>, array_agg(<expr>)).Maybe there's a different
string_aggfunction in other dialects I'm not aware of?alamb commentedon Oct 23, 2023
You are right, that makes sense. I tried it out:
haohuaijin commentedon Nov 12, 2023
I want to work on this issue.
alamb commentedon Aug 12, 2025
This function currently works well
So closing down