persistence icon indicating copy to clipboard operation
persistence copied to clipboard

CriteriaBuilder countDistinct() should take multiple expressions

Open lukasj opened this issue 8 years ago • 3 comments
trafficstars

CriteriaBuilder

Expression<Long> countDistinct(Expression<?> x)

It should take multiple expressions.

Expression<Long> countDistinct(Expression<?> ... expressions)
Expression<Long> countDistinct(List<Expression<?>> expressions)

lukasj avatar Sep 01 '17 21:09 lukasj

  • Issue Imported From: https://github.com/javaee/jpa-spec/issues/157
  • Original Issue Raised By:@javaone199
  • Original Issue Assigned To: Unassigned

lukasj avatar Aug 31 '18 16:08 lukasj

I think this issue is not adequate and needs further justification. Maybe this should just be closed to reduce clutter or marked as very low priority so the focus can be on higher impact work?

Reza Rahman Jakarta EE Ambassador, Author, Blogger, Speaker

Please note views expressed here are my own as an individual community member and do not reflect the views of my employer.

m-reza-rahman avatar Apr 28 '21 02:04 m-reza-rahman

The request seems very valid and useful to me. Many databases support count distinct of tuples. For those that don't, it's possible to implement query transformations.

beikov avatar Apr 28 '21 07:04 beikov