Hubert-Dudek
Databricks MVP

You can use collect_set in SQL. If you share the example input row and desired output, it would be easier to help.


My blog: https://databrickster.medium.com/