-
Notifications
You must be signed in to change notification settings - Fork 1.5k
HQL parser rejects HAVING without GROUP BY #3840
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@mp911de this time it is related to HQL, not EQL |
All right, thanks for clarifying. I noticed the same reproducer repository and assumed a typo. |
@mp911de I reworked the project and added two maven profiles to be able to check Hql and Eql for the same queries |
FWIW, for those parser pure-syntax issues it should be fine to just have the offending query text, you don't need to craft new tests (maybe once we encounter some issue that terminates with a Hibernate stack trace). |
@mp911de sure, it is more for myself. For better understanding. Also to make sure, that I'm reporting a real reproducible bug |
|
@mp911de now I see. I didn't read the stacktrace precisely and missed the fact, that exception comes from Hibernate, when I'm trying to execute the query |
That's fixed now. |
@mp911de incredible, thank you |
HqlParser cannot parse the valid HQL query. Here is the query
Here is the example https://github.com/afrunt/eql-bug-check
(there are separate profiles for HQL and EQL
mvn clean package -U -P hql
mvn clean package -U -P eql
)
I will add similar upcoming issues to this project if any
NOTE: EqlParser works fine with this case
The text was updated successfully, but these errors were encountered: