[hibernate-issues] [JIRA] (HHH-10220) DISTINCT does not work with aggregate functions in JPQL