spring-projects / spring-projects/spring-data-couchbase
Missing Aggregation/GroupBy functions in CouchbaseTemplate
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 284
- Forks
- 197
- PR merge metrics
- No merged PRs in 30d
Description
It is not possible to use CouchbaseTemplate methods for grouping/having and projection functions clauses in Couchbase n1ql queries. Would be nice to have incorporated into its API these methods for the findByQuery method.
Currently, you need to use the native Couchbase SDK Cluster class for querying an aggregation n1ql statement.
Request:
Aggregation API in CouchbaseTemplate
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the CouchbaseTemplate entry point and its findByQuery method, then compare the requested grouping, having, and projection clauses with the native Couchbase SDK Cluster query path. Done means the template API provides an agreed aggregation interface for these clauses while preserving the existing query use case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- backend, database
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100