sebersole / hibernate-orm-sqm-poc

PoC for using Antlr 4 in Hibernate query parsing
3 stars 11 forks source link

HQL with COUNT does not support function calls #1

Open Naros opened 9 years ago

Naros commented 9 years ago

Using the following HQL: SELECT fieldA, COUNT(DISTINCT CONCAT(fieldB,'-',fieldC,'-',fieldD)) FROM Entity GROUP BY fieldA

The parser throws the following error: org.hibernate.hql.internal.ast.ErrorCounter: expecting CLOSE, found '(' at antlr.Parser.match(Parser.java:211)

spl1nt3r99 commented 5 years ago

The same problem