spring-projects / spring-projects/spring-data-couchbase

Missing Aggregation/GroupBy functions in CouchbaseTemplate

Open
#1,201 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.