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

Aggregate functions are not supported in Kundera #982

Closed
AntonYudin opened this issue Jan 26, 2018 · 3 comments
Closed

Aggregate functions are not supported in Kundera #982

AntonYudin opened this issue Jan 26, 2018 · 3 comments

Comments

@AntonYudin
Copy link
Contributor

I'm using cassandra 3.11.0 and it looks that aggregate functions are not supported.
A simple query like:
SELECT MAX(field) FROM Table t WHERE id = :value
is translated to CQL by kundera as
SELECT * FROM "Table" WHERE "id" = value
and getSingleResult() returns an Entity object instead of a field.

Are there any plans to add support for standard aggregate functions?

@karthikprasad13
Copy link
Collaborator

Hi @AntonYudin

Aggregate queries are not yet supported since there is no native support for aggregations in many NoSQL databases supported by Kundera.

As a workaround, you can use createNativeQuery for running aggregations in Cassandra.

Check this testcase for more info

-Karthik

@AntonYudin
Copy link
Contributor Author

Thanks for the reply.

It would work if kundera supported setting parameters on native queries.
According to this issue and my own tests, setting parameters on native queries is not supported.

Thanks.

@devender-yadav
Copy link
Contributor

Reference - #983

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

No branches or pull requests

3 participants