| After some digging the error comes from: shouldSkipWrappingInParenthesis in org.hibernate.hql.internal.ast.tree.IdentNode which also should be skippet in the case of a select without aggregation function. I’m not familiar with the code, but it seems that walker could have( added?) such a functionality. Just removing in case of a SELECT breaks a a test for count distinct with composite key… |