GROUP_CONCAT (Aggregate, Lakehouse v2)
Concatenates values from a group into a single string with a separator.
Analyze Syntax
Section titled “Analyze Syntax”func.group_concat(get_column(table, 'name'), literal(','))Analyze Examples
Section titled “Analyze Examples”func.group_concat(get_column(table, 'name'))SQL Syntax
Section titled “SQL Syntax”GROUP_CONCAT(<name>, literal(','))SQL Examples
Section titled “SQL Examples”SELECT department, GROUP_CONCAT(name ORDER BY name SEPARATOR ', ')FROM employees GROUP BY department;
┌────────────┬──────────────────────────┐│ department │ group_concat(name) │├────────────┼──────────────────────────┤│ Sales │ Alice, Bob, Charlie ││ IT │ Dave, Eve │└────────────┴──────────────────────────┘