Skip to content

Add sumDouble, sumLong, sumBigDecimal, and sumBigInteger to NumberExpression for forward compatibility with Querydsl 6+#1641

Open
jparams wants to merge 6 commits intoOpenFeign:querydsl-5.0.0from
jparams:querydsl-5.0.0
Open

Add sumDouble, sumLong, sumBigDecimal, and sumBigInteger to NumberExpression for forward compatibility with Querydsl 6+#1641
jparams wants to merge 6 commits intoOpenFeign:querydsl-5.0.0from
jparams:querydsl-5.0.0

Conversation

@jparams
Copy link

@jparams jparams commented Mar 13, 2026

Summary

Add the following typed aggregation helpers to NumberExpression:

  • sumDouble()
  • sumLong()
  • sumBigDecimal()
  • sumBigInteger()

Motivation

Querydsl 6+ introduces typed aggregation helpers such as sumDouble() and sumLong().
Adding these methods to Querydsl 5 allows projects to adopt the newer DSL now and makes future upgrades easier.

This provides forward compatibility and reduces code changes required when migrating to newer versions.

Example

qOrder.amount.sumDouble();
qOrder.quantity.sumLong();
qInvoice.total.sumBigDecimal();

jparams added 6 commits March 13, 2026 13:54
…,-sumbiginteger-methods

Add sumDouble, sumLong, sumBigDecimal, and sumBigInteger to NumberExpression for forward compatibility with Querydsl 6+
…,-sumbiginteger-methods-4mv7xt

Add typed sum aggregation methods to NumberExpression
@jparams
Copy link
Author

jparams commented Mar 18, 2026

Hi, just checking in to see what the likelihood of getting this merged in is.

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

Successfully merging this pull request may close these issues.

1 participant