SET compile = 1, min_count_to_compile = 0, max_threads = 1, send_logs_level = 'none'; SELECT arrayJoin([1, 2, 1]) AS UserID, argMax('Hello', today()) AS res GROUP BY UserID;