dimsuz
07/30/2021, 3:22 PMFiles
and table of Folders
and I want to select all files and for each a list of folders to which it belongs. Something like this "pseudo" query:
SELECT file.id, file.name, COLLECT_IN_LIST(folder.name) as List<String>
FROM file
JOIN folder on folder.fileId == file.id
GROUP BY folder.name;
And have data class Result(id: String, name: String, folders: List<String>
.
But no COLLECT_IN_LIST aggregate function exists...