Skip to content
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

Support count distinct on function in hql #2502

Merged
merged 1 commit into from
Aug 30, 2020
Merged

Conversation

bahusoid
Copy link
Member

Fixes #1285

Comment on lines +630 to +631
: ( distinctAll aggregateArgument ) => (distinctAll aggregateArgument)
| aggregateArgument
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An obvious ( ( DISTINCT | ALL )? aggregateArgument ) gives:

[fatal] rule aggregate has non-LL(*) decision due to recursive rule invocations reachable from alts 1,2.  Resolve by left-factoring or using syntactic predicates or using backtrack=true option.

So had to use this syntactic predicate rule with code duplication..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NH-3249 - Cannot perform HQL with "COUNT(DISTINCT Date(s.Date))"
2 participants